summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorXiao-Yong <jinxiaoyong@gmail.com>2021-08-25 20:08:05 -0500
committerGitHub <noreply@github.com>2021-08-26 01:08:05 +0000
commit204b49fc1fcade45837541393fe5600234d95c1b (patch)
treedad6af6991d59313ea973ef9f66570d8ffd32dc3 /var
parentde3c0e62d0471d83740816d20d48858b6329a741 (diff)
downloadspack-204b49fc1fcade45837541393fe5600234d95c1b.tar.gz
spack-204b49fc1fcade45837541393fe5600234d95c1b.tar.bz2
spack-204b49fc1fcade45837541393fe5600234d95c1b.tar.xz
spack-204b49fc1fcade45837541393fe5600234d95c1b.zip
py-grpcio: set parallel build jobs (#25616)
By default the number of parellel compiler processes launched by py-grpcio equals the number of threads. This commit limit it to spack config build_jobs.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-grpcio/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-grpcio/package.py b/var/spack/repos/builtin/packages/py-grpcio/package.py
index d33a1aa043..00c3cf32b1 100644
--- a/var/spack/repos/builtin/packages/py-grpcio/package.py
+++ b/var/spack/repos/builtin/packages/py-grpcio/package.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack import *
+
class PyGrpcio(PythonPackage):
"""HTTP/2-based RPC framework."""
@@ -46,6 +48,7 @@ class PyGrpcio(PythonPackage):
env.set('GRPC_PYTHON_BUILD_SYSTEM_CARES', True)
# https://github.com/grpc/grpc/pull/24449
env.set('GRPC_BUILD_WITH_BORING_SSL_ASM', '')
+ env.set('GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS', str(make_jobs))
for dep in self.spec.dependencies(deptype='link'):
query = self.spec[dep.name]