pypa / distutils

distutils as found in cpython

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_get_python_inc_nt should use sysconfig.get_config_h_filename()

zooba opened this issue · comments

In Python 3.13, we're moving the location of pyconfig.h on Windows (in order to support free threaded builds, it now has to be generated/updated at build time, so it can't be static).

To correctly find the file location, we should call sysconfig.get_config_h_filename() rather than assuming it'll be in the PC\ directory.