mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.numpy: 2.4.6 -> 2.5.0
Diff: https://github.com/numpy/numpy/compare/v2.4.6...v2.5.0 Changelog: https://github.com/numpy/numpy/releases/tag/v2.5.0
This commit is contained in:
parent
6f7e99b2f4
commit
5f39a670cb
1 changed files with 2 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ assert (!blas.isILP64) && (!lapack.isILP64);
|
|||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "numpy";
|
||||
version = "2.4.6";
|
||||
version = "2.5.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
@ -42,7 +42,7 @@ buildPythonPackage (finalAttrs: {
|
|||
repo = "numpy";
|
||||
tag = "v${finalAttrs.version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-jHi3cYiSwFRm3G0Dl4dL6yACSP4lAUECotVI+4KXMg8=";
|
||||
hash = "sha256-RiC1dLoDamK5B2VzHBL0V//K/Vix25q11wNGcl3Witk=";
|
||||
};
|
||||
|
||||
patches = lib.optionals python.hasDistutilsCxxPatch [
|
||||
|
|
@ -86,11 +86,7 @@ buildPythonPackage (finalAttrs: {
|
|||
]
|
||||
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ];
|
||||
|
||||
# we default openblas to build with 64 threads
|
||||
# if a machine has more than 64 threads, it will segfault
|
||||
# see https://github.com/OpenMathLib/OpenBLAS/issues/2993
|
||||
preConfigure = ''
|
||||
sed -i 's/-faltivec//' numpy/distutils/system_info.py
|
||||
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 64 ? 64 : NIX_BUILD_CORES))
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue