Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hooks: sysconfig: Remove obsolete pyconfig.h and makefile.
As of Python 3.x, the config header and makefile are not longer used. And trying to include them causes build errors in pyenv/venv/equivalents. So applying this fixes 5018, fixes 4775, as well as fixes 1545 ( a cleanup issue). On Windows: The pyconfig.h data is hardcoded directly into sysconfig.py. And the makefile does not exist. On Unix: A Python extension module contains all the details. This module is hidden since 3.6 but is already marked as such in the hook. The functions to parse the files are still left over in sysconfig.py but they are not used anywhere. Should a user invoke the parser in a PyInstaller build, it will now fail but that API is not supposed to be public. Instead users should use get_config_var() which will always work (and is the recommended usage anyway).
- Loading branch information