-
Notifications
You must be signed in to change notification settings - Fork 259
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
Numpy 2 compatibility #1550
Comments
Hey @neutrinoceros, thanks for the heads up! @mgrover1 and I will keep an eye out and will get that tested and switched over as soon as possible. Thanks again! |
@neutrinoceros More of a heads up, we were able to get the numpy wheels builds going etc, but we are still trying to figure out the cause of the cython errors in the mac os feedstock builds. |
thanks for letting me know ! |
Reopening - unfortunately we cannot support this yet @neutrinoceros as we are running into conda-forge distribution errors. Until this is tested/sorted out, we are rolling back to |
Not sure I get what the problem is. My understanding is that conda-forge has its own, unrelated mechanism for dealing with numpy ABI compatibility and numpy 2.0 isn't a concern yet from the standpoint of feedstock maintainers. |
We are seeing numerous cython related issues |
the only thing that has changed as been moving from numpy 1 to 2 |
As far as I understand, conda-forge build bots do not even read build system metadata from |
Ohhh that is a good point - I will apply the patch and see if that resolves the issue. |
There is an issue with numpy 2.0 and cython.. described here |
I see that pip seems to be used in the conda-forge build process, which seems unusual (to me ?), so that might be why, but patching |
Do you have an example of applying patches to conda-forge recipes? |
@neutrinoceros It's not weird at all that @mgrover1 Here's an example where the recipe for netcdf patches the source. Essentially, create a patch file (could be as easy as |
Great - thanks @dopplershift !! |
I just saw that pyart 1.18.1 still uses
oldest-supported-numpy
at build time, which indicates that it won't be compatible with the upcoming Numpy 2.0 release. Here's a bit of context:I know that pyart has a lot of big dependencies so it might still take a while before it can be easily tested against numpy 2, however it should already be possible to build future wheels against numpy 2.0 to allow anyone downstream to test it.
The patch would be as simple as
Coordination at the ecosystem level is being tracked at numpy/numpy#26191 (comment), so I recommend keeping an eye out to see when your direct dependencies are compatible and start testing against it, preferably before numpy 2.0.0 final is out.
The text was updated successfully, but these errors were encountered: