Skip to content

Commit

Permalink
Merge pull request #1709 from TyberiusPrime/numpy2
Browse files Browse the repository at this point in the history
overrides: numpy 2
  • Loading branch information
cpcloud committed Jun 20, 2024
2 parents 48e7ed4 + e9fa5b5 commit 5392004
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -14162,6 +14162,10 @@
{
"buildSystem": "cython",
"from": "1.26.0"
},
{
"buildSystem": "meson-python",
"from": "2.0.0"
}
],
"numpy-financial": [
Expand Down
5 changes: 4 additions & 1 deletion overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,10 @@ lib.composeManyExtensions [
# fails to build with format=pyproject and setuptools >= 65
format =
if ((old.format or null) == "poetry2nix") then
"setuptools"
(if lib.versionAtLeast prev.numpy.version "2.0.0" then
"pyproject"
else "setuptools"
)
else
old.format or null;
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ gfortran ];
Expand Down

0 comments on commit 5392004

Please sign in to comment.