-
-
Notifications
You must be signed in to change notification settings - Fork 358
Build PyOpenMS with numpy2 #7539
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
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
I think setup.py needs to require numpy 2 as well then. |
Ideally setup py would require the same major version it was built with. |
Yup. I should be able to add that. Honestly I didn't expect this to just
work out of the box.
On Wednesday, July 3, 2024, Julianus Pfeuffer ***@***.***> wrote:
Ideally setup py would require the same major version it was built with.
Setup.py can and currently already is easily configured with cmake.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.<
|
Hi @jpfeuffer and @poshul, Thanks for looking in to this! I noticed the following comment:
However, with Numpy 2, its C-API is exposed in a backwards-compatible manner. So as long as pyOpenMS is built with Numpy 2, it will work on any installation with Numpy > 1.xx. So the install_requires Numpy dependency in setup.py can become As an aside, are there plans for a pyOpenMS v3.2.1 soon? Thanks! |
Ah great, I didn't know! Then definitely let's do >=1.23.5! |
Fix min version for numpy
@jpfeuffer Done! |
I think he meant to install numpy 2 (or any latest) for the build but require numpy>=1.23.5 in the setup.py |
CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well windows is broken due to a faulty contrib release.. other than that, cannot see what could go wrong with those simple changes.
User description
Description
I've tested building with numpy2 instead of numpy1 and it looks like everything builds without any changes. This is intended to offer a longer term solution to #7511 .
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat
(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkins
will retrigger Jenkins-based CI buildsPR Type
enhancement, dependencies
Description
.github/workflows/pyopenms-wheels.yml
file.numpy<=1.26.4
) and replaced it withpip install -U numpy
.Changes walkthrough 📝
pyopenms-wheels.yml
Update numpy version to the latest in CI workflow
.github/workflows/pyopenms-wheels.yml