Deleting PythonOptions and PythonConfiguration#27900
Deleting PythonOptions and PythonConfiguration#27900dabanki wants to merge 7 commits intobazelbuild:masterfrom
Conversation
Summary of ChangesHello @dabanki, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors Bazel's Python build configuration by eliminating the deprecated Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively removes the deprecated PythonOptions and PythonConfiguration classes. The flags previously defined in PythonOptions have been moved to BuildGraveyardOptions as no-op flags, which is a good practice for ensuring backward compatibility for users who may still have these flags in their configurations. All related code, including configuration fragment registrations, build files, and tests, has been consistently updated to reflect these removals. The changes are clean and well-executed. I have no further comments.
a9864b2 to
d38008b
Compare
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, andincompatible_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.