13 lines
425 B
Plaintext
Executable File
13 lines
425 B
Plaintext
Executable File
if [ ! -e venv ];then
|
|
virtualenv venv
|
|
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
|
|
else
|
|
echo Not running in the venv!
|
|
fi
|
|
else
|
|
echo Virtualenv already exists!
|
|
fi
|