Skip to content

[Fix][Python] Pin pip version to 25.2 in Python tests#40959

Closed
sreenithi wants to merge 1 commit intogrpc:masterfrom
sreenithi:pin_pip_version
Closed

[Fix][Python] Pin pip version to 25.2 in Python tests#40959
sreenithi wants to merge 1 commit intogrpc:masterfrom
sreenithi:pin_pip_version

Conversation

@sreenithi
Copy link
Contributor

Pip released v25.3 a few days back which doesn't support setup.py builds anymore, while we are yet to migrate to use the pyproject.toml build system in #40833.

Hence some of our Python tests using the most recent versions of pip for the build have started to fail with errors like:

  ERROR: Failed building wheel for grpcio
Failed to build grpcio
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects

This PR hence pins the pip version to 25.2 which still supports setup.py build until #40833 is submitted.

@sreenithi sreenithi marked this pull request as ready for review October 27, 2025 07:15
@sreenithi sreenithi requested a review from sergiitk October 27, 2025 07:22
@sergiitk sergiitk changed the title [Python] Pin pip version to 25.2 in Python tests [Fix][Python] Pin pip version to 25.2 in Python tests Oct 27, 2025
copybara-service bot pushed a commit that referenced this pull request Oct 30, 2025
Python version not updated because the image build is broken by a runtime dependency issue. The fix #40959 can't be backported retroactively to the tag.

Closes #40975

COPYBARA_INTEGRATE_REVIEW=#40975 from sergiitk:interop-1.76.0 cd18cff
PiperOrigin-RevId: 826173165
sreenithi added a commit to sreenithi/grpc that referenced this pull request Nov 26, 2025
Pip released [v25.3](https://pip.pypa.io/en/stable/news/#v25-3) a few days back which doesn't support `setup.py` builds anymore, while we are yet to migrate to use the `pyproject.toml` build system in grpc#40833.

Hence some of our Python tests using the most recent versions of pip for the build have started to fail with errors like:
```
  ERROR: Failed building wheel for grpcio
Failed to build grpcio
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
```

This PR hence pins the pip version to 25.2 which still supports setup.py build until grpc#40833 is submitted.

Closes grpc#40959

COPYBARA_INTEGRATE_REVIEW=grpc#40959 from sreenithi:pin_pip_version d72e056
PiperOrigin-RevId: 824584176
sreenithi pushed a commit to sreenithi/grpc that referenced this pull request Nov 26, 2025
Python version not updated because the image build is broken by a runtime dependency issue. The fix grpc#40959 can't be backported retroactively to the tag.

Closes grpc#40975

COPYBARA_INTEGRATE_REVIEW=grpc#40975 from sergiitk:interop-1.76.0 cd18cff
PiperOrigin-RevId: 826173165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants