mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #217687 from OPNA2608/fix/py-grpcio_parallelism
python3Packages.grpcio: Fix build parallelism
This commit is contained in:
commit
379ab86ded
@ -26,7 +26,14 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ six protobuf ]
|
||||
++ lib.optionals (isPy27) [ enum34 futures ];
|
||||
|
||||
preBuild = lib.optionalString stdenv.isDarwin "unset AR";
|
||||
preBuild = ''
|
||||
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$NIX_BUILD_CORES"
|
||||
if [ -z "$enableParallelBuilding" ]; then
|
||||
GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=1
|
||||
fi
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
unset AR
|
||||
'';
|
||||
|
||||
GRPC_BUILD_WITH_BORING_SSL_ASM = "";
|
||||
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1;
|
||||
@ -36,6 +43,8 @@ buildPythonPackage rec {
|
||||
# does not contain any tests
|
||||
doCheck = false;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
pythonImportsCheck = [ "grpc" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user