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

pybigtools: NumPy 2.0 #43

Open
nvictus opened this issue Jun 17, 2024 · 3 comments
Open

pybigtools: NumPy 2.0 #43

nvictus opened this issue Jun 17, 2024 · 3 comments

Comments

@nvictus
Copy link
Collaborator

nvictus commented Jun 17, 2024

Numpy just released its 2.0, which includes ABI breaks, and a migration guide. We should check that nothing breaks or pin numpy < 2 until migration is complete.

@nvictus
Copy link
Collaborator Author

nvictus commented Jul 4, 2024

Re: ABI compatibility

https://numpy.org/doc/stable/dev/depending_on_numpy.html#numpy-2-0-specific-advice

When you build wheels for your package using a NumPy 2.x version at build time, those will work with NumPy 1.xx.

So for pybigtools, we want a numpy 2.x dependency at build time. i.e.:

[build-system]
requires = ["maturin>=1.0,<2.0",  "numpy>=2.0,<3.0"]
build-backend = "maturin"
...

@jackh726
Copy link
Owner

jackh726 commented Jul 4, 2024

That seems fine - I did a bit of testing and didn't encounter any problems.

@nvictus
Copy link
Collaborator Author

nvictus commented Jul 4, 2024

I take it back. For pyO3-based bindings, the build time dependency that matters is rust-numpy.

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

No branches or pull requests

2 participants