Merge pull request #1020 from bouk/numpy-cores

numpy: Set NPY_NUM_BUILD_JOBS for parallel build
This commit is contained in:
adisbladis 2023-03-01 08:50:14 +13:00 committed by GitHub
commit 612cdf65bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1358,6 +1358,9 @@ lib.composeManyExtensions [
preBuild = ''
ln -s ${cfg} site.cfg
'';
preConfigure = ''
export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
'';
passthru = old.passthru // {
blas = blas;
inherit blasImplementation cfg;