Smarthome Functionen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init_venv 327B

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