mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Issue #28046: Fix distutils
Why do we have two sysconfig modules again?
This commit is contained in:
parent
2e82bf824e
commit
80da993826
1 changed files with 5 additions and 1 deletions
|
|
@ -418,7 +418,11 @@ _config_vars = None
|
||||||
def _init_posix():
|
def _init_posix():
|
||||||
"""Initialize the module as appropriate for POSIX systems."""
|
"""Initialize the module as appropriate for POSIX systems."""
|
||||||
# _sysconfigdata is generated at build time, see the sysconfig module
|
# _sysconfigdata is generated at build time, see the sysconfig module
|
||||||
name = '_sysconfigdata_' + sys.abiflags
|
name = '_sysconfigdata_{abi}_{platform}_{multiarch}'.format(
|
||||||
|
abi=sys.abiflags,
|
||||||
|
platform=sys.platform,
|
||||||
|
multiarch=getattr(sys.implementation, '_multiarch', ''),
|
||||||
|
)
|
||||||
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
|
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
|
||||||
build_time_vars = _temp.build_time_vars
|
build_time_vars = _temp.build_time_vars
|
||||||
global _config_vars
|
global _config_vars
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue