Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 29, 2021

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
Member Author

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
Member Author

I prefer to abandon my PR for now.

Sign up for free to 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