24 lines
668 B
Bash
Executable File
24 lines
668 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
BASE_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
if [ -z "$CONTEXTROOT" ]; then
|
|
source ${BASE_DIR}/myenv.sh
|
|
fi
|
|
cd $BASE_DIR
|
|
|
|
python3 -m pip install -r "$BASE_DIR/requirements.txt"
|
|
|
|
herolib='~/code/git.ourworld.tf/projectmycelium/hero_server/lib'
|
|
herolib=$(eval echo $herolib)
|
|
|
|
PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
|
|
|
|
echo "$BASE_DIR/lib" > "${VENV_DIR}/lib/python${PYTHON_VERSION}/site-packages/weblib.pth"
|
|
echo "$herolib" > "${VENV_DIR}/lib/python${PYTHON_VERSION}/site-packages/herolib.pth"
|
|
|
|
echo "OK"
|
|
|
|
|
|
python3 -m pip install -r "requirements.txt"
|
|
pip install --upgrade pip
|