-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
python312Packages.numpy_2: init at 2.0.0 #310837
Conversation
FYI, numexpr v2.10.0 already depends on this. |
For libraries, we can only offer exactly one version of a popular dependency, because otherwise we'd run into conflicts, if different versions were propagated into some package. Check if you can get numexpr unpinned, else downgrade it. |
Challenges: - Upgrade GDAL to <3.9 because of <NixOS/nixpkgs#311310>. - Upgrade numexpr to <2.10 because of <NixOS/nixpkgs#310837>. - Had to add Cython 0 to the color-operations build inputs <nix-community/poetry2nix#1658>
Due to ABI compatibility, the number of packages that require numpy2 as a build-time dependency is increasing, but I have yet to see one that requires numpy2 as a runtime dependency. |
Challenges: - Had to hold back GDAL from 3.9 because it's not yet in nixpkgs <NixOS/nixpkgs#311310>. - Had to hold back numexpr from 2.10 because it's not yet in nixpkgs <NixOS/nixpkgs#310837>. - Had to hold back matplotlib from 3.9 because it needs a poetry2nix override <nix-community/poetry2nix#1659>. - Had to force sat-search version 0.3.0 to avoid Poetry downgrading it to 0.1.0. - Had to add Cython 0 to the color-operations build inputs <nix-community/poetry2nix#1658>. Script: ```bash cd flooding/sentinel2_water_extraction poetry add --lock gdal="<3.9" matplotlib="<3.9" numexpr="<2.10" sat-search=">=0.3.0" poetry update --lock git checkout pyproject.toml poetry lock --no-update cd ../sentinel1_water_extraction/ poetry add --lock gdal="<3.9" poetry update --lock git checkout pyproject.toml poetry lock --no-update ```
Challenges: - Had to hold back GDAL from 3.9 because it's not yet in nixpkgs <NixOS/nixpkgs#311310>. - Had to hold back numexpr from 2.10 because it's not yet in nixpkgs <NixOS/nixpkgs#310837>. - Had to hold back matplotlib from 3.9 because it needs a poetry2nix override <nix-community/poetry2nix#1659>. - Had to force sat-search version 0.3.0 to avoid Poetry downgrading it to 0.1.0. - Had to add Cython 0 to the color-operations build inputs <nix-community/poetry2nix#1658>. Script: ```bash cd flooding/sentinel2_water_extraction poetry add --lock gdal="<3.9" matplotlib="<3.9" numexpr="<2.10" sat-search=">=0.3.0" poetry update --lock git checkout pyproject.toml poetry lock --no-update cd ../sentinel1_water_extraction/ poetry add --lock gdal="<3.9" poetry update --lock git checkout pyproject.toml poetry lock --no-update ```
f54b227
to
68b3ff5
Compare
https://github.com/numpy/numpy/releases/tag/v2.0.0 Default for Python 3.13, since Numpy 1.26.x lacks support for it.
Removes deprecated and removed unittest module functions.
Retested on Python 3.11/3.12/3.13 on x86_64-linux. |
https://github.com/numpy/numpy/releases/tag/v2.0.0
can probably wait until after the branch-off
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.