Skip to content

Commit

Permalink
make python interpreter available in focal (nasa#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
trey0 authored Mar 23, 2022
1 parent 231d587 commit e350f53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/setup/install_desktop_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ if ! sudo apt-get install -m -y $pkgs; then
exit 1
}
fi

DIST=`cat /etc/os-release | grep -oP "(?<=VERSION_CODENAME=).*"`
if [ "$DIST" == "focal" ]; then
echo "Ubuntu 20.04 Focal Fossa detected"

echo "If 'python' interpreter is missing, point to 'python3'"
which python >/dev/null || sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
fi

0 comments on commit e350f53

Please sign in to comment.