24 lines
557 B
Bash
Executable File
24 lines
557 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
source ${BASE_DIR}/myenv.sh
|
|
cd $BASE_DIR
|
|
|
|
python3 -m pip install -r "$BASE_DIR/requirements.txt"
|
|
|
|
# pip freeze > requirements.txt
|
|
|
|
#to make sure we have the paths towards hero in our library
|
|
#echo "$BASE_DIR/lib/hero" > "$BASE_DIR/.venv/lib/python3.12/site-packages/hero.pth"
|
|
echo "$BASE_DIR/lib" > "${VENV_DIR}/lib/python3.12/site-packages/weblib.pth"
|
|
|
|
#for osx
|
|
# pip3 install psycopg2-binary
|
|
# psycopg2
|
|
|
|
echo "OK"
|
|
|
|
|
|
python3 -m pip install -r "requirements.txt"
|
|
pip install --upgrade pip
|