ptpython configuration
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.

reposinit 727B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. #
  3. echo "* Initialising Submodules"
  4. git submodule init
  5. git submodule update
  6. echo "* Creating virtual env"
  7. BASEPATH=`realpath $(dirname $0)`
  8. python3 -m venv $BASEPATH/venv
  9. $BASEPATH/venv/bin/pip install --upgrade pip
  10. find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r
  11. $BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U
  12. echo "* Linking pylibs to venv"
  13. for path in `find pylibs/ -maxdepth 1 -type d`; do
  14. if [[ $path != "pylibs/" ]];then
  15. lib=${path#*/}
  16. echo Creating symbolic link for library $lib
  17. rm -f venv/lib/python*/site-packages/$lib
  18. ln -s ../../../../$path venv/lib/python*/site-packages/
  19. fi
  20. done