From 5ad38c33910f96a72b4765ac8e5f87e723171c52 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Wed, 8 Jan 2020 16:23:46 +0100 Subject: [PATCH] [bootstrap] use --update-specs during conda install For some reason when bootstrap installs bob.devtools in the CI of other packages, it does not update all packages. I think this might lead to broken base environments. --- bob/devtools/bootstrap.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py index f9e44cf8..ff0b5e50 100644 --- a/bob/devtools/bootstrap.py +++ b/bob/devtools/bootstrap.py @@ -535,12 +535,13 @@ if __name__ == "__main__": "--channel=%s" % k for k in channels ] conda_cmd = "install" if args.envname in ("base", "root") else "create" - run_cmdline( - [conda_bin, conda_cmd] - + conda_verbosity - + channels - + ["-n", args.envname, "bob.devtools"] - ) + cmd = ([conda_bin, conda_cmd] + + conda_verbosity + + channels + + ["-n", args.envname, "bob.devtools"]) + if conda_cmd == "install": + cmd += ["--update-specs"] + run_cmdline(cmd) # print conda information for debugging purposes run_cmdline([conda_bin, "info"] + conda_verbosity) -- GitLab