-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update minimum numpy version for Python 3.12
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=41.2", "cython>=0.29.20", "wheel", "oldest-supported-numpy"] | ||
requires = ["setuptools>=41.2", "cython>=0.29.20", "wheel", "oldest-supported-numpy; python_version<'3.12.0.rc1'", "numpy>=1.26.0b1; python_version>='3.12.0.rc1'"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
numpy>1.13.3 | ||
numpy>1.13.3; python_version<'3.12.0.rc1' | ||
numpy>=1.26.0b1; python_version>='3.12.0.rc1' |
c640b72
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.
Could you expand on why numpy >= 1.26.0b1 is required when running with Python 3.12? I'd like to update Fedora 39 to cftime 1.6.3, but it has Python 3.12 and numpy 1.24.4.
c640b72
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.
The version constraint here was based on this comment. And it's because numpy 1.26 was the first release to support Python 3.12. (The beta version was only temporarily needed because the final release wasn't out at the time of this commit.)
It looks like the Fedora package had to backport some fixes to get numpy 1.24.4 working with Python 3.12. I don't think there's anything intrinsically in
cftime
that requires numpy 1.26, so the Fedora package forcftime
could ignore this constraint as long as the patched numpy package is working.c640b72
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.
Thank you very much for the response.