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 = '' preConfigure = ''
sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py 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 = '' preBuild = ''
@ -31,6 +32,8 @@ buildPythonPackage rec {
EOF EOF
''; '';
enableParallelBuilding = true;
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
pushd dist pushd dist