Skip to content

Commit 15425da

Browse files
committed
pythongh-108223: test.pythoninfo and libregrtest log Py_NOGIL (python#108238)
Enable with --disable-gil --without-pydebug: $ make pythoninfo|grep NOGIL sysconfig[Py_NOGIL]: 1 $ ./python -m test ... == Python build: nogil debug ... (cherry picked from commit 5afe0c1)
1 parent f848b2b commit 15425da

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/libregrtest/utils.py

+5
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ def get_build_info():
230230
ldflags_nodist = sysconfig.get_config_var('PY_LDFLAGS_NODIST') or ''
231231

232232
build = []
233+
234+
# --disable-gil
235+
if sysconfig.get_config_var('Py_NOGIL'):
236+
build.append("nogil")
237+
233238
if hasattr(sys, 'gettotalrefcount'):
234239
# --with-pydebug
235240
build.append('debug')

Lib/test/pythoninfo.py

+1
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ def collect_sysconfig(info_add):
493493
'PY_STDMODULE_CFLAGS',
494494
'Py_DEBUG',
495495
'Py_ENABLE_SHARED',
496+
'Py_NOGIL',
496497
'SHELL',
497498
'SOABI',
498499
'prefix',

0 commit comments

Comments
 (0)