|
@@ -5,7 +5,12 @@ git submodule init
|
5
|
5
|
git submodule update
|
6
|
6
|
|
7
|
7
|
echo "* Creating virtual env"
|
8
|
|
-mkvenv
|
|
8
|
+BASEPATH=`realpath $(dirname $0)`
|
|
9
|
+
|
|
10
|
+python3 -m venv $BASEPATH/venv
|
|
11
|
+$BASEPATH/venv/bin/pip install --upgrade pip
|
|
12
|
+find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
|
|
13
|
+$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U
|
9
|
14
|
|
10
|
15
|
echo "* Linking pylibs to venv"
|
11
|
16
|
for path in `find pylibs/ -maxdepth 1 -type d`; do
|
|
@@ -17,5 +22,3 @@ for path in `find pylibs/ -maxdepth 1 -type d`; do
|
17
|
22
|
fi
|
18
|
23
|
done
|
19
|
24
|
|
20
|
|
-echo "* Creating application link in /usr/local/bin"
|
21
|
|
-sudo rm -f /usr/local/bin/ptpython && sudo ln -s `pwd`/venv/bin/ptpython /usr/local/bin
|