python: enable opt-in parallel build_ext builds for setuptools

This commit is contained in:
Phillip Cloud
2022-04-22 07:26:17 -04:00
committed by Frederik Rietdijk
parent b59fc4830a
commit 52248e4466
@@ -11,6 +11,9 @@ setuptoolsBuildPhase() {
if [ -n "$setupPyGlobalFlags" ]; then
args+="$setupPyGlobalFlags"
fi
if [ -n "$enableParallelBuilding" ]; then
setupPyBuildFlags+="--parallel $NIX_BUILD_CORES"
fi
if [ -n "$setupPyBuildFlags" ]; then
args+="build_ext $setupPyBuildFlags"
fi