Commit 3a4c2210 authored by Jason R. Coombs's avatar Jason R. Coombs

Fallback to '_sysconfigdata' when platform-specific sysconfigdata is unavailable.

parent 00ce1222
...@@ -444,7 +444,12 @@ def _init_posix(): ...@@ -444,7 +444,12 @@ def _init_posix():
platform=sys.platform, platform=sys.platform,
multiarch=getattr(sys.implementation, '_multiarch', ''), multiarch=getattr(sys.implementation, '_multiarch', ''),
)) ))
try:
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0) _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
except ImportError:
# Python 3.5 and pypy 7.3.1
_temp = __import__(
'_sysconfigdata', 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
_config_vars = {} _config_vars = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment