Remove dev option from update-python-env
This commit is contained in:
parent
cd222daa98
commit
a3448c14c8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user