From 5896ebd5b74b594e87b95dc356c7fd15f1dbbf39 Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 18 Mar 2026 14:34:42 +0000 Subject: [PATCH] Fix setup.sh crashing on Python < 3.13 version check due to ERR trap --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 983f5c2..906b3d7 100755 --- a/setup.sh +++ b/setup.sh @@ -490,11 +490,11 @@ PY # 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. - python3 - <<'PY' + if python3 - <<'PY' import sys raise SystemExit(0 if sys.version_info >= (3,13) else 1) PY - if [[ $? -eq 0 ]]; then + then warn "Python 3.13+ detected: optional packages without pre-built wheels will be skipped (--prefer-binary)." fi }