From 97ea57bb79e41f17d76023a4384cb7199f743060 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 10 Mar 2024 22:36:49 -0400 Subject: [PATCH] perf: avoid compiling unused bytecode (#752) * perf: avoid compiling unused bytecode Signed-off-by: Henry Schreiner * tests: also update test Signed-off-by: Henry Schreiner --------- Signed-off-by: Henry Schreiner --- src/build/env.py | 1 + tests/test_env.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/build/env.py b/src/build/env.py index 348162e3..bfbc5d7b 100644 --- a/src/build/env.py +++ b/src/build/env.py @@ -261,6 +261,7 @@ def install_requirements(self, requirements: Collection[str]) -> None: 'install', '--use-pep517', '--no-warn-script-location', + '--no-compile', '-r', os.path.abspath(req_file.name), ] diff --git a/tests/test_env.py b/tests/test_env.py index 7bfd8c3c..7b1fa2ea 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -197,6 +197,7 @@ def test_default_impl_install_cmd_well_formed( 'install', '--use-pep517', '--no-warn-script-location', + '--no-compile', '-r', mocker.ANY, ]