mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
This commit is contained in:
parent
0ef96c2b2a
commit
c0afb7fa0e
3 changed files with 10 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue