Only install Cython early to satisfy different platforms

pull/21451/head
Lidi Zheng 5 years ago
parent 151e5b72af
commit bf3a5c2478
  1. 6
      tools/run_tests/artifacts/build_artifact_python.sh

@ -22,8 +22,8 @@ export PYTHON=${PYTHON:-python}
export PIP=${PIP:-pip}
export AUDITWHEEL=${AUDITWHEEL:-auditwheel}
# Install mandatory Python dependencies to avoid source wheel build failure.
"${PIP}" install -rrequirements.txt --user
# Install Cython to avoid source wheel build failure.
"${PIP}" install --upgrade cython
# Allow build_ext to build C/C++ files in parallel
# by enabling a monkeypatch. It speeds up the build a lot.
@ -99,6 +99,8 @@ fi
# are in a docker image or in a virtualenv.
if [ "$GRPC_BUILD_GRPCIO_TOOLS_DEPENDENTS" != "" ]
then
"${PIP}" install -rrequirements.txt
if [ "$("$PYTHON" -c "import sys; print(sys.version_info[0])")" == "2" ]
then
"${PIP}" install futures>=2.2.0

Loading…
Cancel
Save