From 7502a2311a42da20242b8adb724173018fa14a2e Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Mon, 29 Oct 2018 22:48:35 -0700 Subject: [PATCH] Try cleaner separation * reduce possible contamination of environment variables --- src/python/grpcio/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py index 62c74c8e0a3..70d5c5dd352 100644 --- a/src/python/grpcio/commands.py +++ b/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 # libraries. It prevents dependency issues while distributing to # Mac users who use MacPorts to manage their libraries. #17002 - env = os.environ.copy() - env['HAS_SYSTEM_OPENSSL_ALPN'] = '0' + mod_env = dict(os.environ) + mod_env['HAS_SYSTEM_OPENSSL_ALPN'] = '0' make_process = subprocess.Popen( ['make'] + extra_defines + targets, - # env=env, + env=mod_env, stdout=subprocess.PIPE, stderr=subprocess.PIPE) make_out, make_err = make_process.communicate()