Delete BazelPythonConfiguration#27842
Closed
gregestren wants to merge 11 commits intobazelbuild:masterfrom
Closed
Conversation
Also --incompatible_remove_ctx_bazel_py_fragment, which was the Bazel 9 flag to toggle this behavior.
They can't be deleted until bazelbuild#27793 merges.
dabanki
approved these changes
Dec 4, 2025
copybara-service bot
pushed a commit
that referenced
this pull request
Dec 12, 2025
Related to #27842. This removes hard-coded flags `--build_python_zip`, `--incompatible_default_to_explicit_init_py`, `--python_native_rules_allowlist`, `incompatible_python_disallow_native_rules`, and `incompatible_remove_ctx_py_fragment`. These flags are re-difined in rules_python 1.7.0+ and linked into Bazel in #27792. This PR graveyards them but we can delete them outright when #27793 merges. By removing --incompatible_remove_ctx_py_fragment, this change removes the ability to revert to native definitions for post-9 Bazel. For #26521 and bazel-contrib/rules_python#3252. Closes #27900. PiperOrigin-RevId: 843734148 Change-Id: I1bb9624b3e5a579f6aa50663eb63ef4d7d482b57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This removes hard-coded flags
--python_path,--experimental_python_import_all_repositories, and--incompatible_remove_ctx_bazel_py_fragment.The first two are redefined in
rules_python1.7.0+ and linked into Bazel in #27792. This PR graveyards them but we can delete them outright when #27793 merges.--incompatible_remove_ctx_bazel_py_fragmentwas added in Bazel 9 to allow toggling between the native and Starlark definitions.By removing
--incompatible_remove_ctx_bazel_py_fragment, this change removes the ability to revert to native definitions for post-9 Bazel.For #26521 and bazel-contrib/rules_python#3252.