-
-
Notifications
You must be signed in to change notification settings - Fork 29
Py_GetConstant compatibility breaking numpy build #89
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
Hi, which Python 3.13 version are you testing exactly? Are you testing a Python 3.13 release or the main development branch? |
main branch |
Why are you testing the main branch instead of 3.13 alpha releases? pythoncapi-compat.h doesn't work well with the main branch (between alpha0 and beta1), while C API functions are being added. It's uneasy to check if a function is available or not, since |
If you embed a copy of pythoncapi-compat.h, you can just remove Py_GetConstant() from your copy for now, until Python 3.13.0a6 is released (or until a solution is found in pythoncapi-compat.h). Py_GetConstant() is only needed in pythoncapi-compat.h if you plan to use Py_GetConstant() with Python 3.12 and older. |
Ok, I fixed the issue with the change commit 68aad45. Thanks for the bug report @tacaswell. These issues should not happen with regular 3.x.y minor and bugfix releases, only with alpha releases. I usually attempt to avoid them for people who are following closely the main branch. |
Because everyone needs a hobby 🤣 https://github.com/tacaswell/build_the_world I can confirm that this fixes numpy. |
Which looks like a collaboration of python/cpython#116883 and #87
but I have not any debugging other than to try building with 5a76d1be8ef371b75ca65166726923c249b5f615 (with c4bf58a14f162557038a1535ca22c52b49d81d7b cherry-picked on) for CPython (which worked) and pushing the numpy's submodule of this repo back one commit (which worked).
It does not appear that numpy otherwise uses these symbols, but I have not tracked down if this is a "numpy is using it wrong" problem or this project is confliting with cpython problem.
attn @rgommers
The text was updated successfully, but these errors were encountered: