bpo-39026: Allow relative include paths#20181
Conversation
Prior to this change, the following would fail to compile with gcc main.c
#include "include/python3.9/Python.h"
int main() {}
The compiler would complain that cpython/initconfig.h didn't exist.
|
This was broken in python 3.8 |
Sorry, something went wrong.
|
This issue has been open for a while, but the current 3.10 build from the python site still hasn't fixed the framework. Is this PR being held on the idea it is better to not integrate and rename the files and references? Also on top of this Xcode will complain bitterly about python headers using double quoted rather than angle bracket syntax. This is the other thing breaking embedding python on macOS apps. It could be solved by pragma, by moving to angle brackets or by including instructions to disable that warning |
Sorry, something went wrong.
|
I wrote a different fix: PR #29488. Can someone please check if it fix the issue with Xcode? |
Sorry, something went wrong.
|
Thanks for working on this issue. I fixed the issue differently: #29488 |
Sorry, something went wrong.
Prior to this change, the following would fail to compile with gcc main.c
The compiler would complain that cpython/initconfig.h didn't exist.
https://bugs.python.org/issue39026