aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-02-08 13:31:21 -0800
committerGravatar Masood Malekghassemi <atash@google.com>2016-02-08 14:51:04 -0800
commit6598ce16dbeca4ed2d9ea554eec154fa4e0d659b (patch)
tree6691d40a28f1ceca13749e16cb3665516883b071 /src/python/grpcio
parent81b780b84b77a093ac2273865cd1af8a0f6f69bf (diff)
Move os.environ to module-level
Diffstat (limited to 'src/python/grpcio')
-rw-r--r--src/python/grpcio/commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
index 31bd00e94e..8901db81c5 100644
--- a/src/python/grpcio/commands.py
+++ b/src/python/grpcio/commands.py
@@ -56,6 +56,9 @@ BINARIES_REPOSITORY = os.environ.get(
'GRPC_PYTHON_BINARIES_REPOSITORY',
'https://storage.googleapis.com/grpc-precompiled-binaries/python/')
+USE_GRPC_CUSTOM_BDIST = bool(int(os.environ.get(
+ 'GRPC_PYTHON_USE_CUSTOM_BDIST', '1')))
+
CONF_PY_ADDENDUM = """
extensions.append('sphinx.ext.napoleon')
napoleon_google_docstring = True
@@ -135,7 +138,7 @@ class Install(install.install, EggNameMixin):
def initialize_options(self):
install.install.initialize_options(self)
- self.use_grpc_custom_bdist = bool(int(os.environ.get('GRPC_PYTHON_USE_CUSTOM_BDIST', '1')))
+ self.use_grpc_custom_bdist = USE_GRPC_CUSTOM_BDIST
def finalize_options(self):
install.install.finalize_options(self)