Remove dev option from update-python-env

This commit is contained in:
Maks Snegov 2024-10-13 11:33:48 -07:00
parent cd222daa98
commit a3448c14c8

View File

@ -1,5 +1,5 @@
if [ -z $1 ]; then
echo "Usage: $0 <python version> [ENV_NAME [dev]]"
echo "Usage: $0 <python version> [ENV_NAME]"
exit 1
fi
@ -13,7 +13,6 @@ PROJECT=$2
if [[ $PROJECT == "" ]]; then
PROJECT=$(basename $PWD)
fi
DO_DEV=$3
echo "[*] Checking if required python version $PY_VER is installed"
pyenv versions | grep $PY_VER > /dev/null
@ -42,8 +41,3 @@ if [ -f requirements.txt ]; then
echo "[*] Installing packets from requirements.txt"
pip install -Ur requirements.txt
fi
if [ -f requirements-dev.txt ] && [ "$DO_DEV" = "dev" ]; then
echo "[*] Installing packets from requirements-dev.txt"
pip install -Ur requirements-dev.txt
fi