aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib/python
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-05-04 06:26:15 -0700
committerGravatar Masood Malekghassemi <atash@google.com>2016-05-04 15:30:30 -0700
commite9407c2e74a3ca3819d78a8ffa4d20fb51a00a59 (patch)
tree357b557a6d503d44df5a82c9d8fa927949600787 /test/distrib/python
parent010eb48d2169e13ab8afeae32c29ede7b84a0e4d (diff)
Test binary Python distributions
Diffstat (limited to 'test/distrib/python')
-rwxr-xr-xtest/distrib/python/run_distrib_test.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/distrib/python/run_distrib_test.sh b/test/distrib/python/run_distrib_test.sh
index 79893af8e5..73e471dd26 100755
--- a/test/distrib/python/run_distrib_test.sh
+++ b/test/distrib/python/run_distrib_test.sh
@@ -33,8 +33,7 @@ set -ex
cd $(dirname $0)
# Pick up the source dist archive whatever its version is
-SDIST_ARCHIVE=$EXTERNAL_GIT_ROOT/input_artifacts/grpcio-*.tar.gz
-BDIST_DIR="file://$EXTERNAL_GIT_ROOT/input_artifacts"
+BDIST_ARCHIVES=$EXTERNAL_GIT_ROOT/input_artifacts/grpcio-*.whl
if [ ! -f ${SDIST_ARCHIVE} ]
then
@@ -48,11 +47,13 @@ PYTHON=python2
which $PYTHON || PYTHON=python
# TODO(jtattermusch): this shouldn't be required
-$PIP install --upgrade six
+$PIP install --upgrade six pip
-GRPC_PYTHON_BINARIES_REPOSITORY="${BDIST_DIR}" \
- $PIP install \
- ${SDIST_ARCHIVE}
+# At least one of the bdist packages has to succeed (whichever one matches the
+# test machine, anyway).
+for bdist in ${BDIST_ARCHIVES}; do
+ ($PIP install $bdist) || true
+done
$PYTHON distribtest.py