Try cleaner separation

* reduce possible contamination of environment variables
pull/17049/head
Lidi Zheng 6 years ago committed by GitHub
parent 688db0ec5b
commit 7502a2311a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/python/grpcio/commands.py

@ -277,11 +277,11 @@ class BuildExt(build_ext.build_ext):
# Ensure the BoringSSL are built instead of using system provided # Ensure the BoringSSL are built instead of using system provided
# libraries. It prevents dependency issues while distributing to # libraries. It prevents dependency issues while distributing to
# Mac users who use MacPorts to manage their libraries. #17002 # Mac users who use MacPorts to manage their libraries. #17002
env = os.environ.copy() mod_env = dict(os.environ)
env['HAS_SYSTEM_OPENSSL_ALPN'] = '0' mod_env['HAS_SYSTEM_OPENSSL_ALPN'] = '0'
make_process = subprocess.Popen( make_process = subprocess.Popen(
['make'] + extra_defines + targets, ['make'] + extra_defines + targets,
# env=env, env=mod_env,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
make_out, make_err = make_process.communicate() make_out, make_err = make_process.communicate()

Loading…
Cancel
Save