mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-04 15:00:23 +01:00
Update wgd.sh
This commit is contained in:
parent
fc11cacd24
commit
5b47fc16d9
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user