Skip to content
Snippets Groups Projects
Commit f7ae91f3 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts.create] Fix pip-installation during dry-run mode

parent db1ee078
No related branches found
No related tags found
No related merge requests found
Pipeline #45657 passed
...@@ -279,6 +279,9 @@ def create( ...@@ -279,6 +279,9 @@ def create(
cmd = [conda, "run", "--live-stream", "--name", name, "pip", "install"] cmd = [conda, "run", "--live-stream", "--name", name, "pip", "install"]
cmd += pip_extras 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}\"") echo_normal(f">>> Execute on your shell: \"conda activate {name}\"")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment