python3Packages.numpy: temporarily avoid rebuild on !isClang
Ugly but fortunately I'll revert it immediately.
This commit is contained in:
parent
4f923aa46c
commit
7ea07d2c0c
|
@ -39,7 +39,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage (rec {
|
||||||
pname = "numpy";
|
pname = "numpy";
|
||||||
version = "1.24.2";
|
version = "1.24.2";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
@ -91,9 +91,6 @@ in buildPythonPackage rec {
|
||||||
nativeBuildInputs = [ gfortran cython ];
|
nativeBuildInputs = [ gfortran cython ];
|
||||||
buildInputs = [ blas lapack ];
|
buildInputs = [ blas lapack ];
|
||||||
|
|
||||||
# Causes `error: argument unused during compilation: '-fno-strict-overflow'` due to `-Werror`.
|
|
||||||
hardeningDisable = lib.optionals stdenv.cc.isClang [ "strictoverflow" ];
|
|
||||||
|
|
||||||
# we default openblas to build with 64 threads
|
# we default openblas to build with 64 threads
|
||||||
# if a machine has more than 64 threads, it will segfault
|
# if a machine has more than 64 threads, it will segfault
|
||||||
# see https://github.com/xianyi/OpenBLAS/issues/2993
|
# see https://github.com/xianyi/OpenBLAS/issues/2993
|
||||||
|
@ -140,4 +137,7 @@ in buildPythonPackage rec {
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with lib.maintainers; [ fridh ];
|
maintainers = with lib.maintainers; [ fridh ];
|
||||||
};
|
};
|
||||||
}
|
} // lib.optionalAttrs stdenv.cc.isClang {
|
||||||
|
# Causes `error: argument unused during compilation: '-fno-strict-overflow'` due to `-Werror`.
|
||||||
|
hardeningDisable = [ "strictoverflow" ];
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue