summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-10 01:29:10 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-10 01:29:10 (GMT)
commit80da9938260e044d0430a2c6f6a2efff6d39851f (patch)
treea919c24bca199fea40ec26b7d5c7502e6a9130a0 /Lib/distutils
parent2e82bf824ec843f1d34b0219e94bef4f699a0492 (diff)
downloadcpython-80da9938260e044d0430a2c6f6a2efff6d39851f.zip
cpython-80da9938260e044d0430a2c6f6a2efff6d39851f.tar.gz
cpython-80da9938260e044d0430a2c6f6a2efff6d39851f.tar.bz2
Issue #28046: Fix distutils
Why do we have two sysconfig modules again?
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/sysconfig.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 6813598..229626e 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -418,7 +418,11 @@ _config_vars = None
def _init_posix():
"""Initialize the module as appropriate for POSIX systems."""
# _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)
build_time_vars = _temp.build_time_vars
global _config_vars