18 lines
455 B
Bash
Executable File
18 lines
455 B
Bash
Executable File
#!/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 ----------"
|