python.pkgs.scipy: enable parallel building

This commit is contained in:
Frederik Rietdijk 2017-07-30 10:19:15 +02:00
parent 2c8960d85f
commit 70cd310712

View File

@ -20,6 +20,7 @@ buildPythonPackage rec {
preConfigure = ''
sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py
export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
'';
preBuild = ''
@ -31,6 +32,8 @@ buildPythonPackage rec {
EOF
'';
enableParallelBuilding = true;
checkPhase = ''
runHook preCheck
pushd dist