1From 44b878afd7bec90538b04a4d90894a4279ab4835 Mon Sep 17 00:00:00 2001
2From: ptrcnull <git@ptrcnull.me>
3Date: Fri, 17 Nov 2023 19:19:19 +0100
4Subject: [PATCH] change default opt level to 0
5
6that's also what python-installer uses, and it would
7make `gpep517 install-wheel` invokations more neat
8---
9 gpep517/__main__.py | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/gpep517/__main__.py b/gpep517/__main__.py
13index d519c75..2dc0b49 100644
14--- a/gpep517/__main__.py
15+++ b/gpep517/__main__.py
16@@ -350,9 +350,9 @@ def add_install_args(parser):
17 f"(default: {sys.executable})")
18 group.add_argument("--optimize",
19 type=parse_optimize_arg,
20- default=[],
21+ default=[0],
22 help="Comma-separated list of optimization levels "
23- "to compile bytecode for (default: none), pass 'all' "
24+ "to compile bytecode for (default: 0), 0s 'all' "
25 "to enable all known optimization levels (currently: "
26 f"{', '.join(str(x) for x in ALL_OPT_LEVELS)})")
27
28--
292.44.0
30