mirror of
https://github.com/smittix/intercept.git
synced 2026-06-01 18:53:36 -07:00
Fix setup.sh crashing on Python < 3.13 version check due to ERR trap
This commit is contained in:
@@ -490,11 +490,11 @@ PY
|
|||||||
|
|
||||||
# Python 3.13+ warning: some packages (gevent, numpy, scipy) may not have
|
# Python 3.13+ warning: some packages (gevent, numpy, scipy) may not have
|
||||||
# pre-built wheels yet and will be skipped to avoid hanging on compilation.
|
# pre-built wheels yet and will be skipped to avoid hanging on compilation.
|
||||||
python3 - <<'PY'
|
if python3 - <<'PY'
|
||||||
import sys
|
import sys
|
||||||
raise SystemExit(0 if sys.version_info >= (3,13) else 1)
|
raise SystemExit(0 if sys.version_info >= (3,13) else 1)
|
||||||
PY
|
PY
|
||||||
if [[ $? -eq 0 ]]; then
|
then
|
||||||
warn "Python 3.13+ detected: optional packages without pre-built wheels will be skipped (--prefer-binary)."
|
warn "Python 3.13+ detected: optional packages without pre-built wheels will be skipped (--prefer-binary)."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user