From a05cb9707497e8a2d90445e03c637fa89f5898a9 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 2 Sep 2024 16:08:39 +0100 Subject: [PATCH] Restore `--only-python` arg to only install Python deps (#7464) --- scripts/install_deps.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/install_deps.py b/scripts/install_deps.py index 6713f0c3d..ac243ae35 100755 --- a/scripts/install_deps.py +++ b/scripts/install_deps.py @@ -26,6 +26,9 @@ def main(): help="Useful for faking CI env (defaults to true in CI env)", default=is_ci, ) + parser.add_argument( + "--only-python", action="store_true", help="Only install Python dependencies" + ) parser.add_argument( "--skip-system", action="store_true", @@ -43,14 +46,19 @@ def main(): env.ensure_in_venv(__file__, auto_create=True) env.install_requirements() + colors = env.import_colors() + + if args.only_python: + print() + print(colors.SUCCESS_TEXT + " Only Python dependencies installed") + return + error = False try: run(args) except Exception: traceback.print_exc() error = True - - colors = env.import_colors() print() if error: