fix codex metdatada ndpi build
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 1m40s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 1m40s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user