www_projectmycelium_io/install.sh

16 lines
395 B
Bash
Raw Normal View History

2024-11-08 16:45:52 +00:00
#!/bin/bash
set -ex
BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
source ${BASE_DIR}/myenv.sh
cd $BASE_DIR
2024-11-08 16:49:56 +00:00
python3 -m pip install -r "$BASE_DIR/requirements.txt"
pip install --upgrade pip
2024-11-08 16:45:52 +00:00
PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
2024-11-08 16:49:56 +00:00
# echo "$BASE_DIR/lib" > "${VENV_DIR}/lib/python${PYTHON_VERSION}/site-packages/herolib.pth"
2024-11-08 16:45:52 +00:00
2024-11-08 16:49:56 +00:00
echo "OK"