Description
Nixpkgs version
- Unstable (25.11)
Steps to reproduce
The following shell.nix can reproduce the issue, but any attempt to build python310Packages.numpy will cause the same failure.
{ pkgs ? import <nixpkgs> {} }:
let
pythonPackages = pkgs.python310Packages;
in pkgs.mkShell rec {
name = "test";
venvDir = "./.venv";
buildInputs = [
pythonPackages.python
pythonPackages.numpy
];
}
Can Hydra reproduce this build failure?
Hydra doesn’t try to build the package.
Link to Hydra build job
No response
Relevant log output
NumPy 2.3.0
User defined options
Native files: /build/numpy-2.3.0/.mesonpy-3qese_l_/meson-python-native-file.ini
b_ndebug : if-release
b_vscrt : md
buildtype : release
Found ninja-1.12.1 at /nix/store/1492q00cm64n0hs5966s8cqj6j0x5nxg-ninja-1.12.1/bin/ninja
meson-python: error: The package requires Python version >=3.11, running on 3.10.18
ERROR Backend subprocess exited when trying to invoke build_wheel
error: Cannot build '/nix/store/swkk710bp29s0a25h1i3zkrl0y5nm20s-python3.10-numpy-2.3.0.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/b9palrlq33f9nfjm4c0zahzm7jsii87p-python3.10-numpy-2.3.0
/nix/store/d1vrrlyzv5lyk8mg57p2swmbw6x3kyg8-python3.10-numpy-2.3.0-dist
Last 25 log lines:
> Enabled targets: AVX512F, AVX2, baseline
> Generating multi-targets for "loops_autovec.dispatch.h"
> Enabled targets: AVX2, baseline
> Generating multi-targets for "loops_half.dispatch.h"
> Enabled targets: AVX512_SPR, AVX512_SKX, baseline
> WARNING: Project targets '>=1.5.2' but uses feature deprecated since '1.3.0': Source file src/umath/svml/linux/avx512/svml_z0_acos_d_la.s in the 'objects' kwarg is not an object..
> Generating multi-targets for "_simd.dispatch.h"
> Enabled targets: SSE42, AVX2, FMA3, AVX512F, AVX512_SKX, baseline
> Build targets in project: 108
> WARNING: Deprecated features used:
> * 1.3.0: {'Source file src/umath/svml/linux/avx512/svml_z0_acos_d_la.s in the 'objects' kwarg is not an object.'}
>
> NumPy 2.3.0
>
> User defined options
> Native files: /build/numpy-2.3.0/.mesonpy-3qese_l_/meson-python-native-file.ini
> b_ndebug : if-release
> b_vscrt : md
> buildtype : release
>
> Found ninja-1.12.1 at /nix/store/1492q00cm64n0hs5966s8cqj6j0x5nxg-ninja-1.12.1/bin/ninja
>
> meson-python: error: The package requires Python version >=3.11, running on 3.10.18
>
> ERROR Backend subprocess exited when trying to invoke build_wheel
For full logs, run:
nix-store -l /nix/store/swkk710bp29s0a25h1i3zkrl0y5nm20s-python3.10-numpy-2.3.0.drv
Additional context
This issue was caused by the upgrade to Numpy 2.3.0: 12eec2b which deprecates support for Python 3.10 (see: https://numpy.org/news/#numpy-230-released). I would submit a patch to change the pythonOlder
call to indicate the deprecation of 3.10, but this would still cause build failures since many of the 3.10 packages require numpy.
System metadata
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
/nix/store/dsf8rmmxad7lzw1f7nfsjxxf5qclq0cz-nix-info
copying path '/nix/store/dsf8rmmxad7lzw1f7nfsjxxf5qclq0cz-nix-info' from 'https://cache.nixos.org'...
- system:
"x86_64-linux"
- host os:
Linux 5.15.0-139-generic, Ubuntu, 20.04.6 LTS (Focal Fossa), nobuild
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.30.1
- channels(root):
"nixpkgs"
- nixpkgs:
/nix/store/7djj8mamb8ms7ig203m9ckrc3sz0myb8-nixpkgs/nixpkgs
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE
.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.