Skip to content

Commit

Permalink
Merge pull request #223817 from panicgh/pyqt-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Apr 24, 2023
2 parents 69db871 + 9709a91 commit 8c98025
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion pkgs/development/python-modules/pyqt/5.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -117,7 +128,7 @@ buildPythonPackage rec {
++ lib.optional withWebSockets "PyQt5.QtWebSockets"
++ lib.optional withWebKit "PyQt5.QtWebKit"
++ lib.optional withMultimedia "PyQt5.QtMultimedia"
++ lib.optional withConnectivity "PyQt5.QtConnectivity"
++ lib.optional withConnectivity "PyQt5.QtBluetooth"
++ lib.optional withLocation "PyQt5.QtPositioning"
;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pyqt/6.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ buildPythonPackage rec {
# pkgs/development/interpreters/python/hooks/pip-build-hook.sh
# does not use the enableParallelBuilding flag
postUnpack = ''
export MAKEFLAGS+=" -j$NIX_BUILD_CORES"
export MAKEFLAGS+="''${enableParallelBuilding:+-j$NIX_BUILD_CORES}"
'';

outputs = [ "out" "dev" ];
Expand Down

0 comments on commit 8c98025

Please sign in to comment.