From f7ae91f3fd0a445a92c0cf62e6100b971d5e93f7 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Mon, 16 Nov 2020 22:24:01 +0100 Subject: [PATCH] [scripts.create] Fix pip-installation during dry-run mode --- bob/devtools/scripts/create.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bob/devtools/scripts/create.py b/bob/devtools/scripts/create.py index bdd7c120..d97b7fb4 100644 --- a/bob/devtools/scripts/create.py +++ b/bob/devtools/scripts/create.py @@ -279,6 +279,9 @@ def create( cmd = [conda, "run", "--live-stream", "--name", name, "pip", "install"] cmd += pip_extras - subprocess.run(cmd, check=True, bufsize=1) + if not dry_run: + subprocess.run(cmd, check=True, bufsize=1) + else: + logger.info(f"Command: {' '.join(cmd)}") echo_normal(f">>> Execute on your shell: \"conda activate {name}\"") -- GitLab