From 2256ce4848426d9601f398fc896bc588e31b73c3 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Fri, 6 Aug 2021 08:59:42 +0200 Subject: [PATCH] [bootstrap] Fix environment creation --- bob/devtools/bootstrap.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py index faf682c6..e4180143 100644 --- a/bob/devtools/bootstrap.py +++ b/bob/devtools/bootstrap.py @@ -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) -- GitLab