cpython icon indicating copy to clipboard operation
cpython copied to clipboard

sysconfig.get_config_vars() fails on Windows when dynamic loading is disabled

Open philthompson10 opened this issue 3 years ago • 0 comments

Bug report

A change was made in Python v3.8 where, on Windows, EXT_SUFFIX was initialised from the first element of the list returned by _imp.extension_suffixes(). In previous versions this was hardcoded to '.pyd'. When HAVE_DYNAMIC_LOADING is not defined the list of suffixes will always be empty resulting in a IndexError exception being raised.

Your environment

Windows. Python v3.8 to v3.11.

  • PR: gh-99274

philthompson10 avatar Nov 07 '22 12:11 philthompson10