From e3589fd7c326d0575f53feb0d26ace1b070d30e6 Mon Sep 17 00:00:00 2001 From: malmert Date: Fri, 6 Mar 2026 22:22:41 +0100 Subject: [PATCH] fix codex metdatada ndpi build --- setup_build_server.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/setup_build_server.sh b/setup_build_server.sh index 65e1d7d..2adeb73 100755 --- a/setup_build_server.sh +++ b/setup_build_server.sh @@ -83,7 +83,12 @@ fi if [ -d "/tmp/nDPI/python" ]; then 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 cd "$BACKEND_DIR" @@ -226,7 +231,10 @@ npm run build cd $BACKEND_DIR source venv/bin/activate 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 pip install -r requirements.txt deactivate