[issue40642] Cpython "pystate.h" subdirectory wrong

2021-02-26 Thread Andrew Tomazos
Andrew Tomazos added the comment: After studying the include directives in the Include folder, I think the best fix would be: In Include/cpython/state.h: - #include "cpython/initconfig.h" + #include "initconfig.h" this will mean that state.h will find initc

[issue40642] Cpython "pystate.h" subdirectory wrong

2021-02-26 Thread Andrew Tomazos
Andrew Tomazos added the comment: Related: https://stackoverflow.com/q/63211981/1131467 -- ___ Python tracker <https://bugs.python.org/issue40642> ___ ___ Pytho

[issue40642] Cpython "pystate.h" subdirectory wrong

2021-02-26 Thread Andrew Tomazos
Andrew Tomazos added the comment: The problem occurs if you: #include on *nix systems. Note `/usr/include/` is in the system include path. One workaround is to `-I/usr/include/python3.8` and then `#include `. Another workaround is to comment out: // #include "cp