Skip to content

Commit

Permalink
Merge pull request #444 from emmcauley/feature/python-linux-prereq-up…
Browse files Browse the repository at this point in the history
…dates-#432

#432 proposing use of python3 metapackage on Debian-alike systems ins…
  • Loading branch information
chinmayshah99 authored Feb 14, 2023
2 parents b2f9528 + 0fb1bc6 commit 2f96593
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions prereqs_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ else
sudo apt-get install g++
fi

# checking for python 3.6
# checking for Python 3
echo "Checking for python3 installation"
if command -v python3 &>/dev/null; then
echo "Python 3 already installed"
elif command python --version | grep -q 'Python 3'; then
echo "Python 3 already installed"
else
echo "Installing Python 3 is not installed"
sudo add-apt-repository ppa:deadsnakes/ppa
echo "Installing Python 3 is not installed"
sudo apt-get update
sudo apt-get install python3.6
sudo apt-get install python3
fi

# checking for poetry
Expand Down

0 comments on commit 2f96593

Please sign in to comment.