Interactive interface for browsing global, full-resolution satellite imagery
update install python logic to include python default #1682
Benjamin Kingbab77538a34a
diff --git a/tasks/pythonInstall.sh b/tasks/pythonInstall.shindex 4f149d63b..065b6ddff 100755--- a/tasks/pythonInstall.sh+++ b/tasks/pythonInstall.sh@@ -2,12 +2,16 @@# Install python dependenciesPYTHON_VERSION="$(python -V 2>&1)"if [ $1 = "linux" ]; then- if command -v python3 &>/dev/null || [[ $PYTHON_VERSION = *"Python 3"* ]]; then+ if command -v python3 &>/dev/null; thenecho "Installing virtualenv with python3"python3 -m pip install --user virtualenvpython3 -m virtualenv .pythonPATH=.python/bin:${PATH} pip install -r requirements.txt- # If is a linux machine try to run python2+ elif [[ $PYTHON_VERSION = *"Python 3"* ]]; then+ echo "Installing virtualenv with python3"+ python -m pip install --user virtualenv+ python -m virtualenv .python+ PATH=.python/bin:${PATH} pip install -r requirements.txtelseecho "Please install or update python v3"fi