Skip to content

Commit b98419b

Browse files
committed
Revert now unrelated changes
1 parent 76c85bb commit b98419b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Lib/sysconfig/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,12 @@ def _init_non_posix(vars):
401401
vars['BINLIBDEST'] = get_path('platstdlib')
402402
vars['INCLUDEPY'] = get_path('include')
403403

404-
# Add EXT_SUFFIX, SOABI, ABIFLAGS, and Py_GIL_DISABLED (defined in Modules/_sysconfig.c)
404+
# Add EXT_SUFFIX, SOABI, ABIFLAGS, and Py_GIL_DISABLED
405405
# NOTE: ABIFLAGS is only an emulated value. It is not present during build
406406
# on Windows. sys.abiflags is absent on Windows and `vars['abiflags']
407407
# is already widely used to calculate paths. vars['abiflags'] should
408408
# remain empty string.
409-
vars.update(_sysconfig.config_vars())
409+
vars.update(_sysconfig.config_vars()) # defined in Modules/_sysconfig.c
410410

411411
vars['LIBDIR'] = _safe_realpath(os.path.join(get_config_var('installed_base'), 'libs'))
412412
if hasattr(sys, 'dllhandle'):
@@ -418,7 +418,6 @@ def _init_non_posix(vars):
418418
vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable))
419419
vars['TZPATH'] = ''
420420

421-
422421
#
423422
# public APIs
424423
#
@@ -546,9 +545,6 @@ def _init_config_vars():
546545
except AttributeError:
547546
_CONFIG_VARS['py_version_nodot_plat'] = ''
548547

549-
# e.g., 't' for free-threaded or '' for default build
550-
_CONFIG_VARS['abi_thread'] = 't' if _CONFIG_VARS.get('Py_GIL_DISABLED') else ''
551-
552548
if os.name == 'nt':
553549
_init_non_posix(_CONFIG_VARS)
554550
_CONFIG_VARS['VPATH'] = sys._vpath
@@ -558,6 +554,9 @@ def _init_config_vars():
558554
# the init-function.
559555
_CONFIG_VARS['userbase'] = _getuserbase()
560556

557+
# e.g., 't' for free-threaded or '' for default build
558+
_CONFIG_VARS['abi_thread'] = 't' if _CONFIG_VARS.get('Py_GIL_DISABLED') else ''
559+
561560
# Always convert srcdir to an absolute path
562561
srcdir = _CONFIG_VARS.get('srcdir', _PROJECT_BASE)
563562
if os.name == 'posix':

0 commit comments

Comments
 (0)