Fix venv add to path

This commit is contained in:
Niels Geens
2025-03-18 09:46:16 +01:00
parent 5c1ef4d9e7
commit 3ea5ba87a9
4 changed files with 12 additions and 3 deletions

View File

@@ -3,11 +3,17 @@
echo "Installing ITB tool..."
python3 -m venv "/root/venvs/itb"
/root/venvs/itb/bin/pip install -e /root/sia/tools/itb/
echo "export PATH=\"/root/venvs/itb/bin/:\$PATH\"" > "/etc/profile.d/venv_itb.sh" \
source "/etc/profile.d/venv_itb.sh"
echo "Installing Train tool..."
python3 -m venv "/root/venvs/train"
/root/venvs/train/bin/pip install -e /root/sia/tools/train/
echo "export PATH=\"/root/venvs/train/bin/:\$PATH\"" > "/etc/profile.d/venv_train.sh" \
source "/etc/profile.d/venv_train.sh"
echo "Installing SIA core..."
python3 -m venv "/root/venvs/sia"
/root/venvs/sia/bin/pip install -e /root/sia/
/root/venvs/sia/bin/pip install -e /root/sia/
echo "export PATH=\"/root/venvs/sia/bin/:\$PATH\"" > "/etc/profile.d/venv_sia.sh" \
source "/etc/profile.d/venv_sia.sh"