Merge pull request #18354 from lidizheng/fix-dist

Fix Python distribution test
pull/18366/head
Jan Tattermusch 6 years ago committed by GitHub
commit 7095e051f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/distrib/python/test_packages.sh

@ -37,11 +37,11 @@ TESTING_ARCHIVES=("$EXTERNAL_GIT_ROOT"/input_artifacts/grpcio-testing-[0-9]*.tar
VIRTUAL_ENV=$(mktemp -d)
virtualenv "$VIRTUAL_ENV"
PYTHON=$VIRTUAL_ENV/bin/python
"$PYTHON" -m pip install --upgrade six pip
"$PYTHON" -m pip install --upgrade six pip wheel
function validate_wheel_hashes() {
for file in "$@"; do
"$PYTHON" -m wheel unpack "$file" --dest-dir /tmp || return 1
"$PYTHON" -m wheel unpack "$file" -d /tmp || return 1
done
return 0
}

Loading…
Cancel
Save