s2-dungeonsandexploits/flask/dev_init.sh

18 lines
455 B
Bash
Raw Normal View History

2022-11-18 09:04:33 +01:00
#!/bin/bash
set -e
here="$(realpath "$(dirname "$0")")"
cd "$here"
echo "---------- install and upgrade pip ----------"
python -m pip install --upgrade pip
echo "---------- initialize venv ----------"
python3 -m venv venv
source "./venv/bin/activate"
echo "---------- install dependencies ----------"
python -m pip install --upgrade -r "requirements.txt"
echo "---------- run init.sh ----------"
"./init.sh"
cd "$here"
echo "---------- done ----------"