Skip to content

Commit

Permalink
[Fix test] Fix ensurepip missing
Browse files Browse the repository at this point in the history
  • Loading branch information
XuanWang-Amos committed Jan 3, 2024
1 parent b84d5ef commit c12c32e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/run_tests/helper_scripts/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ if [[ "$(inside_venv)" ]]; then
else
# Instantiate the virtualenv from the Python version passed in.
$PYTHON -m pip install --user virtualenv==20.25.0
# Use --no-seed to prevent virtualenv from installing seed packages.
# Otherwise it might not find cython module while building grpcio.
$PYTHON -m virtualenv --no-seed "$VENV"
# Skipp wheel and setuptools and manually install later. Otherwise we might
# not find cython module while building grpcio.
$PYTHON -m virtualenv --no-wheel --no-setuptools "$VENV"
VENV_PYTHON="$(pwd)/$VENV/$VENV_RELATIVE_PYTHON"
fi

pip_install() {
$VENV_PYTHON -m pip install "$@"
}

$VENV_PYTHON -m ensurepip --upgrade
pip_install --upgrade pip
pip_install --upgrade wheel
pip_install --upgrade setuptools==66.1.0

Expand Down

0 comments on commit c12c32e

Please sign in to comment.