PyQt5: enable parallel building

Port the workaround for parallel building from PyQt6 to PyQt5. The
initial workaround has been added in commit
1824a128a1.
This commit is contained in:
Nicolas Benes
2023-03-28 03:01:02 +02:00
parent aa69dbd08b
commit 879fa969fe

View File

@@ -55,6 +55,17 @@ buildPythonPackage rec {
EOF
'';
enableParallelBuilding = true;
# HACK: paralellize compilation of make calls within pyqt's setup.py
# pkgs/stdenv/generic/setup.sh doesn't set this for us because
# make gets called by python code and not its build phase
# format=pyproject means the pip-build-hook hook gets used to build this project
# pkgs/development/interpreters/python/hooks/pip-build-hook.sh
# does not use the enableParallelBuilding flag
postUnpack = ''
export MAKEFLAGS+="''${enableParallelBuilding:+-j$NIX_BUILD_CORES}"
'';
outputs = [ "out" "dev" ];
dontWrapQtApps = true;