Skip to content

Commit 271b4ac

Browse files
pipcl.py: show_system(): also show free theading info.
1 parent 8e86d24 commit 271b4ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pipcl.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,6 +2435,12 @@ def log(text):
24352435
log(f'{sys.version_info=}')
24362436
log(f'{list(sys.version_info)=}')
24372437

2438+
log(f'{sysconfig.get_config_var("Py_GIL_DISABLED")=}')
2439+
try:
2440+
log(f'{sys._is_gil_enabled()=}')
2441+
except AttributeError:
2442+
log(f'sys._is_gil_enabled() => AttributeError')
2443+
24382444
log(f'CPU bits: {cpu_bits()}')
24392445

24402446
log(f'sys.argv ({len(sys.argv)}):')

0 commit comments

Comments
 (0)