◐ Shell
clean mode source ↗

bpo-40642: use file-relative include for initconfig.h in pystate.h by xry111 · Pull Request #24744 · python/cpython

Suggested by Andrew Tomazos in bpo:

This will mean that state.h will find initconfig.h using a file-relative include (as all the other include directives do), instead of relying on the installed Include directory being put in the header search path.

As this include directive is the only one with this property, the benefit of this change would be that the Include folder would be able to be installed in any subdirectory of a search path, rather than requiring its own dedicated one.

This would mean (for example) you could install different versions of the Python headers side by side and then select between them using preprocessor directives - rather than having to switch up global compiler options.

https://bugs.python.org/issue40642