-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: Unable to build cython when using NpyIter_GetIterNext
.
#28446
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
np.NpyIter_IterNextFunc
and np.NpyIter_IterNextFunc
.NpyIter_GetIterNext
.
Yeah, seems off... What was the winning combination here? You added this back then and we changed nothing since then, I think. And I assumed you had code that successfully used it at the time? I.e. I am worried that we already have someone manages to use this successfully with the current version, and a change may break them. Even if there is a weird way it works, we probably should just change it with a release note asking to either pin at build time, or just copy paste the definition as a work-around. |
Hmm, from the PR, maybe it really just needs to not use |
Describe the issue:
I am trying to migrate away from using custom cython imports in order to have access to the Iterator API declarations at
numpy/ndarrayobject.h
by using the numpy provided ones added in v2.0.0. However if I try to build the project using the file here I get a build failure. Cc @sebergReproduce the code example:
Error message:
Python and NumPy Versions:
3.12.0 | packaged by conda-forge | (main, Oct 3 2023, 08:43:22) [GCC 12.3.0]
Runtime Environment:
Context for the issue:
Previously, I was manually importing the cython declarations and defined them like so:
as shown here. This worked well and I was able to successfully build the project. Now if I use the declarions added in numpy v2.0.0
I get this build error. I believe this is due to
NpyIter_GetIterNext
returning a pointer toNpyIter_IterNextFunc
instead of just the type.The text was updated successfully, but these errors were encountered: