-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
pyatomic include statement shouldn't use "cpython/*" but just "*" #129296
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
Comments
The compiler should be falling back to the include path regardless--there's no actual compile error in practice, is there? cc @colesbury |
Yeah, I'm not sure there's any problem in practice, but it seems like we might as well fix it, and @zanieb already put up a PR. There's one more place in cpython/Include/cpython/pythread.h Line 25 in a4459c3
|
I have no attachment to the change, though it does seem more consistent with the other library includes. Want me to add that one to the existing pull request or just put another one up? |
Use relative includes in Include/cpython/pyatomic.h for pyatomic_gcc.h, pyatomic_std.h and pyatomic_msc.h. Do a similar change in Include/cpython/pythread.h for pthread_stubs.h include.
Thanks @timprepscius for the bug report and thanks @zanieb for the fix! |
Use relative includes in Include/cpython/pyatomic.h for pyatomic_gcc.h, pyatomic_std.h and pyatomic_msc.h. Do a similar change in Include/cpython/pythread.h for pthread_stubs.h include. (cherry picked from commit 3a974e3) Co-authored-by: Zanie Blue <[email protected]>
gh-129296: Fix `pythread.h` include paths (#129320) Use relative includes in Include/cpython/pythread.h for pthread_stubs.h. (cherry picked from commit 3a974e3) Co-authored-by: Zanie Blue <[email protected]>
gh-129296: Fix `pyatomic.h` include paths (GH-129320) Use relative includes in Include/cpython/pyatomic.h for pyatomic_gcc.h, pyatomic_std.h and pyatomic_msc.h. Do a similar change in Include/cpython/pythread.h for pthread_stubs.h include. (cherry picked from commit 3a974e3) Co-authored-by: Zanie Blue <[email protected]>
Bug report
Bug description:
I'm looking at (and using) a build generated from:
in the file: cpython/install/include/python3.13/cpython/pyatomic.h
there is the statement
these includes say: include, relative to me (quotation), the file cpython/pyatomic_gcc.h
But there is no file "cpython/pyatomic_gcc.h" relative to the cypthon/pyatomic.h
I can of course compensate by putting a:
ln -s . cypthon
in that cpython directory
The fix is to change "cpython/pyatomic_gcc.h" to "pyatomic_gcc.h"
where quotation = "relative to me"
CPython versions tested on:
3.13
Operating systems tested on:
No response
Linked PRs
pyatomic.h
include paths #129320pyatomic.h
include paths (GH-129320) #130667pythread.h
include paths (#129320) #130668The text was updated successfully, but these errors were encountered: