diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-12-07 17:33:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 17:33:20 (GMT) |
commit | c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6 (patch) | |
tree | dbe97d3d7fa6c871765251fd8725a61869cdb619 /Lib/sysconfig.py | |
parent | 0ef96c2b2a291c9d2d9c0ba42bbc1900a21e65f3 (diff) | |
download | cpython-c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6.zip cpython-c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6.tar.gz cpython-c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6.tar.bz2 |
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 6c87b06..e1b2f93 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -424,10 +424,11 @@ def _init_posix(vars): def _init_non_posix(vars): """Initialize the module as appropriate for NT""" # set basic install directories + import _imp vars['LIBDEST'] = get_path('stdlib') vars['BINLIBDEST'] = get_path('platstdlib') vars['INCLUDEPY'] = get_path('include') - vars['EXT_SUFFIX'] = '.pyd' + vars['EXT_SUFFIX'] = _imp.extension_suffixes()[0] vars['EXE'] = '.exe' vars['VERSION'] = _PY_VERSION_SHORT_NO_DOT vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable)) |