fix codex metdatada ndpi build
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 1m40s

This commit is contained in:
2026-03-06 22:22:41 +01:00
parent 25bb7be29d
commit e3589fd7c3

View File

@@ -83,7 +83,12 @@ fi
if [ -d "/tmp/nDPI/python" ]; then if [ -d "/tmp/nDPI/python" ]; then
echo "==> Install nDPI Python bindings" echo "==> Install nDPI Python bindings"
pip install /tmp/nDPI/python # nDPI bindings currently fail with newer build backends on some hosts
# (e.g. metadata parsing errors such as "cannot parse PACK_ON").
pip install "setuptools<81" "packaging<25" wheel
if ! pip install --no-build-isolation /tmp/nDPI/python; then
echo "==> WARNING: nDPI Python bindings install failed, backend will run without DPI enrichment"
fi
fi fi
cd "$BACKEND_DIR" cd "$BACKEND_DIR"
@@ -226,7 +231,10 @@ npm run build
cd $BACKEND_DIR cd $BACKEND_DIR
source venv/bin/activate source venv/bin/activate
if [ -d "/tmp/nDPI/python" ]; then if [ -d "/tmp/nDPI/python" ]; then
pip install /tmp/nDPI/python pip install "setuptools<81" "packaging<25" wheel
if ! pip install --no-build-isolation /tmp/nDPI/python; then
echo "WARNING: nDPI Python bindings install failed during runner build"
fi
fi fi
pip install -r requirements.txt pip install -r requirements.txt
deactivate deactivate