bin/mkvenv

13 lines
425 B
Plaintext
Raw Normal View History

2021-09-22 12:25:12 +02:00
if [ ! -e venv ];then
virtualenv 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=freeze | grep -v '^\-e' | cut -d = -f 1 | 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