Fix breakage when variable unset

pull/23886/head
Richard Belleville 4 years ago
parent 6b80f4d7f2
commit 24537b4767
  1. 2
      tools/distrib/python/grpcio_tools/_parallel_compile_patch.py

@ -22,7 +22,7 @@ import os
try:
BUILD_EXT_COMPILER_JOBS = int(
os.environ.get('GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS'))
os.environ['GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS'])
except KeyError:
import multiprocessing
BUILD_EXT_COMPILER_JOBS = multiprocessing.cpu_count()

Loading…
Cancel
Save