1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

python2Packages.numpy: fix openblas threads

This commit is contained in:
Jonathan Ringer 2020-11-17 09:09:59 -08:00 committed by Jonathan Ringer
parent 8f7cec2297
commit e949d75899

View file

@ -60,6 +60,7 @@ in buildPythonPackage rec {
preConfigure = ''
sed -i 's/-faltivec//' numpy/distutils/system_info.py
export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 64 ? 64 : NIX_BUILD_CORES))
'';
preBuild = ''