Skip to content
Snippets Groups Projects
Commit eae8fc4a authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

python distrib smoketest

parent a7a50785
No related branches found
No related tags found
No related merge requests found
from grpc.beta import implementations
# This code doesn't do much but makes sure the native extension is loaded
# which is what we are testing here.
channel = implementations.insecure_channel('localhost', 1000)
del channel
print 'Success!'
......@@ -32,5 +32,27 @@ set -ex
cd $(dirname $0)
pip install "$EXTERNAL_GIT_ROOT/input_artifacts/grpcio-0.12.0b6.tar.gz"
# TODO(jtattermusch): replace the version number
SDIST_ARCHIVE="$EXTERNAL_GIT_ROOT/input_artifacts/grpcio-0.12.0b8.tar.gz"
BDIST_DIR="file://$EXTERNAL_GIT_ROOT/input_artifacts"
if [ ! -f "${SDIST_ARCHIVE}" ]
then
echo "Archive ${SDIST_ARCHIVE} does not exist."
exit 1
fi
# TODO(jtattermusch): this shouldn't be required
pip install --upgrade six
# TODO(jtattermusch): if these don't get preinstalled, pip tries to install them
# with --use-grpc-custom-bdist option, which obviously fails.
pip install --upgrade enum34
pip install --upgrade futures
GRPC_PYTHON_BINARIES_REPOSITORY="${BDIST_DIR}" \
pip install \
"${SDIST_ARCHIVE}" \
--install-option="--use-grpc-custom-bdist"
python distribtest.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment