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

require pre-numpy 2.0 #4789

Merged
merged 23 commits into from
Jun 24, 2024
Merged

require pre-numpy 2.0 #4789

merged 23 commits into from
Jun 24, 2024

Conversation

ahnitz
Copy link
Member

@ahnitz ahnitz commented Jun 19, 2024

This pins to numpy < 2.0 while the transition is worked out. We'll need one final release with this requirement before switching to numpy 2.0 support.

@ahnitz ahnitz requested a review from titodalcanton June 19, 2024 15:56
@titodalcanton
Copy link
Contributor

Do we need to edit pyproject.toml as well? I forget, but it was suggested to me.

setup.py Outdated Show resolved Hide resolved
Co-authored-by: Tito Dal Canton <tito@dalcanton.it>
@ahnitz
Copy link
Member Author

ahnitz commented Jun 19, 2024

Do we need to edit pyproject.toml as well? I forget, but it was suggested to me.

Yes, if we want it to work for python3.9. Once we drop that, we can actually build against 2.0 and it will work in numpy versions supported back to those using python3.10. They changed the way this works in numpy 2.0 to support backwards compatibility, but only to numpy versions that support the currently supported python version.

@ahnitz
Copy link
Member Author

ahnitz commented Jun 19, 2024

Not sure why build is failing on python 3.11. Running a test just to make sure that is the case and there aren't failures on the other versions. I can't reproduce on my laptop with python3.11 (no failures there) so unfortunately I'm resorting to trying here. Any ideas?

@ahnitz ahnitz merged commit 28e8686 into gwastro:master Jun 24, 2024
33 checks passed
GarethCabournDavies added a commit to GarethCabournDavies/pycbc that referenced this pull request Aug 5, 2024
spxiwh pushed a commit that referenced this pull request Aug 6, 2024
* Try to copy #4789 for v23_release_branch

* Limit scipy version

* Try this

* Use monkeypatch for numpy's float deprecation
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.

3 participants