Skip to content

Commit

Permalink
[Python Distribution] Pin setuptools and wheel to a single version (g…
Browse files Browse the repository at this point in the history
…rpc#36400)

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes grpc#36400

COPYBARA_INTEGRATE_REVIEW=grpc#36400 from XuanWang-Amos:python_distribution bd2bd48
PiperOrigin-RevId: 627114699
  • Loading branch information
XuanWang-Amos authored and copybara-github committed Apr 22, 2024
1 parent a1ec7be commit 297e22c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/release/verify_python_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"grpcio-testing",
"grpcio-admin",
"grpcio-csds",
"grpcio-observability",
"xds-protos",
]

Expand Down
4 changes: 3 additions & 1 deletion tools/run_tests/artifacts/build_artifact_python.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ set PATH=C:\%1;C:\%1\scripts;%PATH%
set PATH=C:\msys64\mingw%2\bin;C:\tools\msys64\mingw%2\bin;%PATH%
:end_mingw64_installation

python -m pip install --upgrade pip six setuptools wheel
python -m pip install --upgrade pip six
@rem Ping to a single version to make sure we're building the same artifacts
python -m pip install setuptools==69.5.1 wheel==0.43.0
python -m pip install --upgrade "cython<3.0.0rc1"
python -m pip install -rrequirements.txt --user

Expand Down
4 changes: 3 additions & 1 deletion tools/run_tests/artifacts/build_artifact_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export AUDITWHEEL=${AUDITWHEEL:-auditwheel}
source tools/internal_ci/helper_scripts/prepare_ccache_symlinks_rc

# Needed for building binary distribution wheels -- bdist_wheel
"${PYTHON}" -m pip install --upgrade pip wheel setuptools
"${PYTHON}" -m pip install --upgrade pip
# Ping to a single version to make sure we're building the same artifacts
"${PYTHON}" -m pip install setuptools==69.5.1 wheel==0.43.0

if [ "$GRPC_SKIP_PIP_CYTHON_UPGRADE" == "" ]
then
Expand Down

0 comments on commit 297e22c

Please sign in to comment.