From 5b47fc16d97a95de7cb14b076e31a96f09d31a48 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Sat, 25 Dec 2021 16:08:30 -0500 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index b3e59aa..693aeea 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -33,9 +33,9 @@ _check_and_set_venv(){ install_wgd(){ # Check Python3 version - version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 8) else print("0");') + version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 7) else print("0");') if [ $version_pass == "0" ] - then printf "| WGDashboard required Python3.8+ |\n" + then printf "| WGDashboard required Python3.7+ |\n" printf "%s\n" "$dashes" exit 1 fi @@ -45,9 +45,11 @@ install_wgd(){ fi printf "| Installing latest Python dependencies |\n" - # set up the local environment _check_and_set_venv ${VIRTUAL_ENV}/bin/python3 -m pip install -U pip +# ${VIRTUAL_ENV}/bin/python3 -m pip install virtualenv + # set up the local environment + ${VIRTUAL_ENV}/bin/python3 -m pip install -U -r requirements.txt printf "| WGDashboard installed successfully! |\n"