Install plugin requirements in pod

This commit is contained in:
Sleepy Monax 2023-12-05 10:39:36 +01:00
parent 6c0f6d5bd5
commit cc88242cef

View file

@ -11,6 +11,20 @@ if [ ! -d "/tools/venv" ]; then
source /tools/venv/bin/activate
$PY -m ensurepip
$PY -m pip install -r /tools/cutekit/requirements.txt
echo "Installing plugins requirements..."
if [ -f "/project/meta/plugins/requirements.txt" ]; then
echo "Root plugin requirements found."
$PY -m pip install -r /project/meta/plugins/requirements.txt
fi
for extern in /project/meta/externs/*; do
if [ -f "$extern/meta/plugins/requirements.txt" ]; then
echo "Plugin requirements found in $extern."
$PY -m pip install -r "$extern/meta/plugins/requirements.txt"
fi
done
echo "Virtual environment created."
else
source /tools/venv/bin/activate