Skip to content

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

Closed

Description

@philthompson10

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.

Activity

  1. added
    type-bug
    on Nov 7, 2022
  2. added a commit that references this issue on Nov 9, 2022
  3. added a commit that references this issue on Nov 19, 2022
  4. FFY00 commented on Nov 21, 2022

    @FFY00
    Member

    Fixed by #99274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions