diff options
author | Masood Malekghassemi <atash@google.com> | 2016-03-15 12:15:13 -0700 |
---|---|---|
committer | Masood Malekghassemi <atash@google.com> | 2016-03-24 12:48:47 -0700 |
commit | 7d8ac466d6562dd6ae985de9ec275c50fa7fcfed (patch) | |
tree | 4ca10138bc2f809c1e855b68c955d79327e73ba0 /src/python/grpcio | |
parent | 85b460fb516e76843c3b091fb6fb4e801878d275 (diff) |
Don't allow precompiled binaries in tests
Before it was possible for precompiled binaries of the Cython layer to
be downloaded during a test run if the metadata of the host machine's
gRPC Python project matched the metadata of a file in cloud storage. Now
we disallow this, and fix a bug where the relevant environment variable
was ineffectual.
Diffstat (limited to 'src/python/grpcio')
-rw-r--r-- | src/python/grpcio/precompiled.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/grpcio/precompiled.py b/src/python/grpcio/precompiled.py index d34250b02c..aeeb2754ea 100644 --- a/src/python/grpcio/precompiled.py +++ b/src/python/grpcio/precompiled.py @@ -91,6 +91,9 @@ class BuildTaggedExt(setuptools.Command): def update_setup_arguments(setup_arguments): + if not USE_PRECOMPILED_BINARIES: + sys.stderr.write('not using precompiled extension') + return url = '{}/{}.so'.format(BINARIES_REPOSITORY, _tagged_ext_name('cygrpc')) target_path = os.path.join(PYTHON_STEM, 'grpc/_cython/cygrpc.so') try: |