Skip to content

bpo-39026: Rename Include/cpython/ header files - #28612

Closed
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:include_cpython
Closed

bpo-39026: Rename Include/cpython/ header files#28612
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:include_cpython

Conversation

@vstinner

@vstinnervstinner commented Sep 29, 2021

Copy link
Copy Markdown
Member

Header files of the Include/cpython/ subdirectory now get a
"cpython_" prefix in their filename to avoid confusion between
Include/

.h and Include/cpython/<header.h> (previously both
files had the same name), especially when a cpython header file
includes another cpython header file. Headers of the Include/cpython/
subdirectory cannot be included directly, so this change has no
impact on the C API.

cpython_pystate.h now includes "cpython_initconfig.h" rather than
"cpython/initconfig.h" to fix building Python on macOS Framework.

https://bugs.python.org/issue39026

Header files of the Include/cpython/ subdirectory now get a
"cpython_" prefix in their filename to avoid confusion between
Include/<header>.h and Include/cpython/<header.h> (previously both
files had the same name), especially when a cpython header file
includes another cpython header file. Headers of the Include/cpython/
subdirectory cannot be included directly, so this change has no
impact on the C API.
cpython_pystate.h now includes "cpython_initconfig.h" rather than
"cpython/initconfig.h" to fix building Python on macOS Framework.
@vstinner

Copy link
Copy Markdown
MemberAuthor

Windows (x86) Failing

That's a known test_asyncio bug: test_sendfile_close_peer_in_the_middle_of_receiving. It's unrelated to my PR.

@vstinner

Copy link
Copy Markdown
MemberAuthor

I prefer to abandon my PR for now.

@vstinner
vstinner deleted the include_cpython branch October 12, 2021 23:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@the-knights-who-say-ni@bedevere-bot