-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-35081: Move Include/pyatomic.c to Include/internal/ #10239
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
Conversation
The only backward incompatible change is that In know that in the past, debuggers like vmprof required to access _PyThreadState_Current, but:
I'm talking about this macro which requires pyatomic.h:
We don't want to export pyatomic.h because its the header leaks its implementation, and the implementation highly depend on the compiler and compiler flags. This header is included in Python.h but its content wasn't first protected by |
Would not be better to move files with the content fully surrounded by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update Windows build files?
Right now, I'm not sure if third party projects require Py_BUILD_CORE code or not... I prefer to continue the previous work to move code into Include/internal/. It seems like Include/internal/ is not installed by python3-devel on Fedora. So Include/internal/ is not usable by 3rd party modules on Fedora at least. |
* Add pyatomic.h to the VS project (it wasn't referenced) * Don't include pyatomic.c in internal/pystate.h
pyatomic.h wasn't included in the VS project. I fixed that. |
I copied your question at https://bugs.python.org/issue35081#msg328922 |
https://bugs.python.org/issue35081