projects/aports·blob master · refs

26 lines · 1.0 KiB

1the previous default of 0, 1 causes opt-1 bytecode to also be generated,
2which is not used without passing `-O` to `python3` anyway, and doubles
3the size of the resulting package
4
5diff --git a/installer/__main__.py b/installer/__main__.py
6index 51014b9..2a389e8 100644
7--- a/installer/__main__.py
8+++ b/installer/__main__.py
9@@ -36,7 +36,7 @@ def _get_main_parser() -> argparse.ArgumentParser:
10 metavar="level",
11 type=int,
12 choices=[0, 1, 2],
13- help="generate bytecode for the specified optimization level(s) (default=0, 1)",
14+ help="generate bytecode for the specified optimization level(s) (default=0)",
15 )
16 parser.add_argument(
17 "--no-compile-bytecode",
18@@ -81,7 +81,7 @@ def _main(cli_args: Sequence[str], program: Optional[str] = None) -> None:
19 if args.no_compile_bytecode:
20 bytecode_levels = []
21 elif not bytecode_levels:
22- bytecode_levels = [0, 1]
23+ bytecode_levels = [0]
24
25 with WheelFile.open(args.wheel) as source:
26 destination = SchemeDictionaryDestination(