Skip to content
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

changed core module call to _core #458

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

euanwm
Copy link
Contributor

@euanwm euanwm commented Oct 9, 2024

Local tests pass
Mentioned on #453
Closes #454

@davidhewitt
Copy link
Member

Thanks! It looks like this might be more complicated to keep numpy 1 support functional. There's failures related to #460, maybe once that merges we can rebase this and get some more information.

@kahojyun
Copy link

pybind11 checks numpy version before importing core module. https://github.com/pybind/pybind11/blob/master/include/pybind11/numpy.h#L175-L195

@euanwm
Copy link
Contributor Author

euanwm commented Oct 10, 2024

Thanks! It looks like this might be more complicated to keep numpy 1 support functional. There's failures related to #460, maybe once that merges we can rebase this and get some more information.

@davidhewitt I rebased earlier - locally - with changes from #460 and hit an error on examples around a "libopenblas-dev" being missing. It did however pass through on check-msrv.

I'll wait until the #460 has been merged and the workflow has been run again to confirm that it isn't my ACT instance being weird.

@davidhewitt
Copy link
Member

@euanwm in interest in shipping the release, I will push to this PR to apply the runtime check as per #458 (comment)

@euanwm
Copy link
Contributor Author

euanwm commented Oct 11, 2024

@davidhewitt I did have a quick look at the root cause, and it's down to the change to _core in earlier numpy releases. Haven't had much time to dig into it further.

Do what you must with this PR, I suspect there's some deprecation required relating to older python support and would need to be a comp-time implementation.

@davidhewitt davidhewitt force-pushed the chore/core_deprecation_warning branch from 4cac006 to fdf0461 Compare October 11, 2024 11:36
@davidhewitt
Copy link
Member

It seems like the runtime check worked, so I'll get on with merging this and shipping the release!

@davidhewitt davidhewitt merged commit d07dbf5 into PyO3:main Oct 11, 2024
49 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeprecationWarning: numpy.core.multiarray is deprecated and has been renamed to numpy._core.multiarray.
3 participants