aboutsummaryrefslogtreecommitdiff
path: root/python-gpep517/default-bytecode-levels.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
commit93a354611e38a6949add5c2e5ccc93ef79b9755f (patch)
tree7fee41752b1047d74c59f8ee046cd62735e7e934 /python-gpep517/default-bytecode-levels.patch
parent35912580b66e9439f91ea441938828ad8aa33b0d (diff)
downloadalicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz
alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'python-gpep517/default-bytecode-levels.patch')
-rw-r--r--python-gpep517/default-bytecode-levels.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/python-gpep517/default-bytecode-levels.patch b/python-gpep517/default-bytecode-levels.patch
new file mode 100644
index 00000000..55aa77ab
--- /dev/null
+++ b/python-gpep517/default-bytecode-levels.patch
@@ -0,0 +1,16 @@
+diff --git a/gpep517/__main__.py b/gpep517/__main__.py
+index d519c75..2dc0b49 100644
+--- a/gpep517/__main__.py
++++ b/gpep517/__main__.py
+@@ -350,9 +350,9 @@ def add_install_args(parser):
+ f"(default: {sys.executable})")
+ group.add_argument("--optimize",
+ type=parse_optimize_arg,
+- default=[],
++ default=[0],
+ help="Comma-separated list of optimization levels "
+- "to compile bytecode for (default: none), pass 'all' "
++ "to compile bytecode for (default: 0), 0s 'all' "
+ "to enable all known optimization levels (currently: "
+ f"{', '.join(str(x) for x in ALL_OPT_LEVELS)})")
+