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

[bootstrap] Fix environment creation

parent 3417bf08
No related branches found
No related tags found
No related merge requests found
Pipeline #52979 canceled
......@@ -579,11 +579,16 @@ if __name__ == "__main__":
"--channel=%s" % k for k in channels
]
conda_cmd = "install" if args.envname in ("base", "root") else "create"
cmd = [conda_bin, conda_cmd, "--yes"] + conda_verbosity + channels
cmd = (
[conda_bin, conda_cmd, "--yes"]
+ conda_verbosity
+ channels
+ ["-n", args.envname]
)
# can only enforce python version on newly created environments
if conda_cmd == "create" and args.python is not None:
cmd.append(f"python={args.python}")
cmd += ["-n", args.envname, "bob.devtools"]
cmd += [f"python={args.python}"]
cmd += ["bob.devtools"]
if conda_cmd == "install":
cmd += ["--update-specs"]
run_cmdline(cmd)
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