Skip to content

Conversation

copybara-service[bot]
Copy link

Add bzlmod support for system_python.

#test-continuous

This creates a module extension for system python so that it can be used in bzlmod builds. The pip_parse setup (dynamically building a new repo) doesn't work in the new bzlmod model, so we use the regular pip extension pointed at system_python's interpreter.

Remaining work to get off WORKSPACE:

  • The pip extension quickly fails in the case where there's no python available, unlike our system_python setup
  • Our windows upb tests were never actually running python, and system_python doesn't work (and breaks under bzlmod due to the above issue)
  • Some of the upb wheel tests still don't work on bzlmod yet because they depend on some very custom http_archive dependencies.

Closes #18750
Closes #23313
Closes #23307

@copybara-service copybara-service bot force-pushed the test_810716790 branch 3 times, most recently from 8d67eb5 to e067b9e Compare September 24, 2025 19:29
#test-continuous

This creates a module extension for system python so that it can be used in bzlmod builds.  The pip_parse setup (dynamically building a new repo) doesn't work in the new bzlmod model, so we use the regular pip extension pointed at system_python's interpreter.

Remaining work to get off WORKSPACE:
* The pip extension quickly fails in the case where there's no python available, unlike our system_python setup
* Our windows upb tests were never actually running python, and system_python doesn't work (and breaks under bzlmod due to the above issue)
* Some of the upb wheel tests still don't work on bzlmod yet because they depend on some very custom http_archive dependencies.

Closes #18750
Closes #23313
Closes #23307

PiperOrigin-RevId: 810995270
@copybara-service copybara-service bot merged commit fa9ceb3 into main Sep 24, 2025
@copybara-service copybara-service bot deleted the test_810716790 branch September 24, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot build @com_google_protobuf//python/dist:binary_wheel

1 participant