|
|
@ -112,10 +112,6 @@ export CFLAGS="-I$ROOT/include -std=gnu99 -fno-wrapv $CFLAGS" |
|
|
|
export GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
|
|
|
export GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
|
|
|
export LANG=en_US.UTF-8 |
|
|
|
export LANG=en_US.UTF-8 |
|
|
|
|
|
|
|
|
|
|
|
# Default python on the host to fall back to when instantiating e.g. the |
|
|
|
|
|
|
|
# virtualenv. |
|
|
|
|
|
|
|
HOST_PYTHON=${HOST_PYTHON:-python} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If ccache is available on Linux, use it. |
|
|
|
# If ccache is available on Linux, use it. |
|
|
|
if [ "$(is_linux)" ]; then |
|
|
|
if [ "$(is_linux)" ]; then |
|
|
|
# We're not on Darwin (Mac OS X) |
|
|
|
# We're not on Darwin (Mac OS X) |
|
|
@ -132,14 +128,9 @@ fi |
|
|
|
# Perform build operations # |
|
|
|
# Perform build operations # |
|
|
|
############################ |
|
|
|
############################ |
|
|
|
|
|
|
|
|
|
|
|
# Instantiate the virtualenv, preferring to do so from the relevant python |
|
|
|
# Instantiate the virtualenv from the Python version passed in. |
|
|
|
# version. Even if these commands fail (e.g. on Windows due to name conflicts) |
|
|
|
$PYTHON -m pip install virtualenv |
|
|
|
# it's possible that the virtualenv is still usable and we trust the tester to |
|
|
|
$PYTHON -m virtualenv "$VENV" |
|
|
|
# be able to 'figure it out' instead of us e.g. doing potentially expensive and |
|
|
|
|
|
|
|
# unnecessary error recovery by `rm -rf`ing the virtualenv. |
|
|
|
|
|
|
|
($PYTHON -m virtualenv "$VENV" || |
|
|
|
|
|
|
|
$HOST_PYTHON -m virtualenv -p "$PYTHON" "$VENV" || |
|
|
|
|
|
|
|
true) |
|
|
|
|
|
|
|
VENV_PYTHON=$(script_realpath "$VENV/$VENV_RELATIVE_PYTHON") |
|
|
|
VENV_PYTHON=$(script_realpath "$VENV/$VENV_RELATIVE_PYTHON") |
|
|
|
|
|
|
|
|
|
|
|
# See https://github.com/grpc/grpc/issues/14815 for more context. We cannot rely |
|
|
|
# See https://github.com/grpc/grpc/issues/14815 for more context. We cannot rely |
|
|
|