File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,13 @@ export PYTHON_VERSIONS=${PYTHON_VERSIONS}
7979
8080# PYTHON_GIL can be set to 0 only if Python is compiled with --disable-gil.
8181# Check if Python is compiled with --disable-gil.
82+ set +e
8283python -c ' import sysconfig ; exit(sysconfig.get_config_var("Py_GIL_DISABLED"))'
8384# Set PYTHON_GIL accordingly.
8485if [ $? -ne 0 ]; then
8586 export PYTHON_GIL=0
8687fi
88+ set -e
8789
8890cmake ../ -DCMAKE_INSTALL_PREFIX=. \
8991 -DARCH=${ARCH} \
Original file line number Diff line number Diff line change 22
33# PYTHON_GIL can be set to 0 only if Python is compiled with --disable-gil.
44# Check if Python is compiled with --disable-gil.
5+ set +e
56python3 -c ' import sysconfig ; exit(sysconfig.get_config_var("Py_GIL_DISABLED"))'
67# Set PYTHON_GIL accordingly.
78if [ $? -ne 0 ]; then
89 export PYTHON_GIL=0
910fi
11+ set -e
1012
1113test_py_with_framework () {
1214 ${python_new_invoke_test} -A ' !slow' -s free-threading
@@ -18,4 +20,4 @@ test_no_fw() {
1820
1921run_all () {
2022 test_no_fw
21- }
23+ }
You can’t perform that action at this time.
0 commit comments