[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks Gaige Paulsen for the bug report, it's now fixed. > I think GH-28612 broke Windows builds: It was related to C++ build, it's now fixed by bpo-45893. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions:

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 92631a4144fba041a5fb6578620db784821dfdc5 by Victor Stinner in branch '3.9': bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29776) https://github.com/python/cpython/commit/92631a4144fba041a5fb6578620db784821dfdc5 --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28013 pull_request: https://github.com/python/cpython/pull/29776 ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ce5a6460aebdc51a810d2755782fe8f0d7918ec2 by Victor Stinner in branch '3.10': bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29732) https://github.com/python/cpython/commit/ce5a6460aebdc51a810d2755782fe8f0d7918ec2 --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27971 pull_request: https://github.com/python/cpython/pull/29730 ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: I think GH-28612 broke Windows builds: python_uwp.cpp python_uwp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct PyStatus __cdecl PyConfig_SetArgv(struct PyConfig *,__int64,wchar_t * const *)"

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Gaige Paulsen
Gaige Paulsen added the comment: I can test the backports if you like. In that case, let me know when the backports are done, I should be able to test those rapidly, now that I have my build environment working for building from source. Thanks again! --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: Gaige Paulsen: "Result: I can confirm that the compilation problem is resolved with this change (and was failing with the main branch prior to the change)." Thank you for the confirmation. I merged my change and I'm backporting it to Python 3.9 and 3.10.

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27969 pull_request: https://github.com/python/cpython/pull/29732 ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4ae26b9c1d0c33e3db92c6f305293f9240dea358 by Victor Stinner in branch 'main': bpo-39026: Fix Python.h when building with Xcode (GH-29488) https://github.com/python/cpython/commit/4ae26b9c1d0c33e3db92c6f305293f9240dea358 --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Gaige Paulsen
Gaige Paulsen added the comment: Sorry about the delay. Finally fixed my workflow for building from scratch. Result: I can confirm that the compilation problem is resolved with this change (and was failing with the main branch prior to the change). --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-17 Thread Gaige Paulsen
Gaige Paulsen added the comment: Short version is not yet. I spent time on it but ran into an issue getting the full build on the machine I was building on. I expect to try it again before the weekend. Is there a binary copy of the framework from the CI somewhere? If so, I can certainly do

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-15 Thread STINNER Victor
STINNER Victor added the comment: Gaige Paulsen: "I'll try to check that in the next day or two." Thanks. Did you have the opportunity to give it a try? -- ___ Python tracker

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-09 Thread Gaige Paulsen
Gaige Paulsen added the comment: I'll try to check that in the next day or two. -- ___ Python tracker ___ ___ Python-bugs-list

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-09 Thread STINNER Victor
STINNER Victor added the comment: I wrote a different fix: PR 29488. Can someone please check if it fix the issue with Xcode? -- ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27739 pull_request: https://github.com/python/cpython/pull/29488 ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-09-29 Thread STINNER Victor
STINNER Victor added the comment: I propose to only rename header files in Python 3.11. For Python 3.9 and 3.10, I suggest to modify Include/cpython/pystate.h by replacing: #include "cpython/initconfig.h" with: #include "initconfig.h" Like the PR 20181. --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-09-29 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure why Include/cpython/ is part of the compiler include directories. I am not sure why Include/ is *not* part of the compiler include directory. Anyway, it's hard to control how people build Python and there are always legit use cases where you

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-09-29 Thread STINNER Victor
Change by STINNER Victor : -- title: pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure -> Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure