bin/mkvenv

13 lines
415 B
Plaintext
Raw Normal View History

2021-09-22 12:25:12 +02:00
if [ ! -e venv ];then
python3 -m venv venv
2022-05-08 11:11:11 +02:00
if venv/bin/pip -V | grep `pwd -P`; then
venv/bin/pip install --upgrade pip
find . -name requirements.txt | xargs -L 1 venv/bin/pip install -r
venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 venv/bin/pip install -U
2021-09-22 12:25:12 +02:00
else
2022-05-08 11:11:11 +02:00
echo Not running in the venv!
2021-09-22 12:25:12 +02:00
fi
else
echo Virtualenv already exists!
fi