|
@@ -1,13 +1,11 @@
|
1
|
1
|
if [ ! -e venv ];then
|
2
|
2
|
virtualenv venv
|
3
|
|
- source venv/bin/activate
|
4
|
|
- if pip -V | grep `pwd -P`; then
|
5
|
|
- pip install --upgrade pip
|
6
|
|
- pip_upgrade_all
|
7
|
|
- find . -name requirements.txt | xargs -L 1 pip install -r
|
8
|
|
- deactivate
|
|
3
|
+ if venv/bin/pip -V | grep `pwd -P`; then
|
|
4
|
+ venv/bin/pip install --upgrade pip
|
|
5
|
+ find . -name requirements.txt | xargs -L 1 venv/bin/pip install -r
|
|
6
|
+ venv/bin/pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 venv/bin/pip install -U
|
9
|
7
|
else
|
10
|
|
- echo Could not activate venv!
|
|
8
|
+ echo Not running in the venv!
|
11
|
9
|
fi
|
12
|
10
|
else
|
13
|
11
|
echo Virtualenv already exists!
|