Skip to content

Commit 80da993

Browse files
committed
Issue python#28046: Fix distutils
Why do we have two sysconfig modules again?
1 parent 2e82bf8 commit 80da993

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/distutils/sysconfig.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,11 @@ def expand_makefile_vars(s, vars):
418418
def _init_posix():
419419
"""Initialize the module as appropriate for POSIX systems."""
420420
# _sysconfigdata is generated at build time, see the sysconfig module
421-
name = '_sysconfigdata_' + sys.abiflags
421+
name = '_sysconfigdata_{abi}_{platform}_{multiarch}'.format(
422+
abi=sys.abiflags,
423+
platform=sys.platform,
424+
multiarch=getattr(sys.implementation, '_multiarch', ''),
425+
)
422426
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
423427
build_time_vars = _temp.build_time_vars
424428
global _config_vars

0 commit comments

Comments
 (0)