A bin folder, holding helpfull scripts and commands
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.

mkvenv 415B

123456789101112
  1. if [ ! -e venv ];then
  2. python3 -m venv venv
  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=json | jq -r '.[] | .name'|xargs -n1 venv/bin/pip install -U
  7. else
  8. echo Not running in the venv!
  9. fi
  10. else
  11. echo Virtualenv already exists!
  12. fi