default-bytecode-levels.patch (786B)
1 diff --git a/gpep517/__main__.py b/gpep517/__main__.py 2 index d519c75..2dc0b49 100644 3 --- a/gpep517/__main__.py 4 +++ b/gpep517/__main__.py 5 @@ -350,9 +350,9 @@ def add_install_args(parser): 6 f"(default: {sys.executable})") 7 group.add_argument("--optimize", 8 type=parse_optimize_arg, 9 - default=[], 10 + default=[0], 11 help="Comma-separated list of optimization levels " 12 - "to compile bytecode for (default: none), pass 'all' " 13 + "to compile bytecode for (default: 0), 0s 'all' " 14 "to enable all known optimization levels (currently: " 15 f"{', '.join(str(x) for x in ALL_OPT_LEVELS)})") 16