Browse Source

scipt for venv creation added

tags/v1.3.0
Dirk Alders 1 year ago
parent
commit
51859d9b5b
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      init_venv

+ 8
- 0
init_venv View File

@@ -0,0 +1,8 @@
1
+#!/bin/sh
2
+#
3
+BASEPATH=`realpath $(dirname $0)`
4
+
5
+python3 -m venv $BASEPATH/venv
6
+$BASEPATH/venv/bin/pip install --upgrade pip
7
+find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
8
+$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U

Loading…
Cancel
Save