Skip to content

Commit 51c8fc7

Browse files
authored
[9.0.1] Add deprecation warning to --build_python_zip (bazelbuild#28586)
Fork of bazelbuild#28527. Fixes bazelbuild#28528.
1 parent 833b237 commit 51c8fc7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ public class PythonOptions extends FragmentOptions {
3535
@Option(
3636
name = "build_python_zip",
3737
defaultValue = "auto",
38-
documentationCategory = OptionDocumentationCategory.OUTPUT_PARAMETERS,
39-
effectTags = {OptionEffectTag.AFFECTS_OUTPUTS},
40-
help = "Build python executable zip; on on Windows, off on other platforms")
38+
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
39+
effectTags = {OptionEffectTag.NO_OP},
40+
deprecationWarning =
41+
"The '--no' prefix is no longer supported for this flag. Please use"
42+
+ " --build_python_zip=false instead.",
43+
help = "Deprecated. No-op.")
4144
public TriState buildPythonZip;
4245

4346
@Option(

0 commit comments

Comments
 (0)