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

[bootstrap] Say "--yes" to all conda commands

parent 7d71a053
Branches
No related tags found
No related merge requests found
Pipeline #39085 passed
...@@ -467,7 +467,7 @@ if __name__ == "__main__": ...@@ -467,7 +467,7 @@ if __name__ == "__main__":
# simple - just use the defaults channels when self building # simple - just use the defaults channels when self building
run_cmdline( run_cmdline(
[conda_bin, "install"] [conda_bin, "install", "--yes"]
+ conda_verbosity + conda_verbosity
+ [ + [
"-n", "-n",
...@@ -484,7 +484,7 @@ if __name__ == "__main__": ...@@ -484,7 +484,7 @@ if __name__ == "__main__":
# index the locally built packages # index the locally built packages
run_cmdline( run_cmdline(
[conda_bin, "install"] [conda_bin, "install", "--yes"]
+ conda_verbosity + conda_verbosity
+ [ + [
"-n", "-n",
...@@ -508,7 +508,7 @@ if __name__ == "__main__": ...@@ -508,7 +508,7 @@ if __name__ == "__main__":
) )
conda_cmd = "install" if args.envname in ("base", "root") else "create" conda_cmd = "install" if args.envname in ("base", "root") else "create"
run_cmdline( run_cmdline(
[conda_bin, conda_cmd] [conda_bin, conda_cmd, "--yes"]
+ conda_verbosity + conda_verbosity
+ channels + channels
+ ["-n", args.envname, "bob.devtools"] + ["-n", args.envname, "bob.devtools"]
...@@ -517,7 +517,7 @@ if __name__ == "__main__": ...@@ -517,7 +517,7 @@ if __name__ == "__main__":
elif args.command == "channel": elif args.command == "channel":
# update conda first # update conda first
run_cmdline([conda_bin, "update", "conda"]) run_cmdline([conda_bin, "update", "--yes", "conda"])
# installs from channel # installs from channel
channels = get_channels( channels = get_channels(
...@@ -530,7 +530,7 @@ if __name__ == "__main__": ...@@ -530,7 +530,7 @@ if __name__ == "__main__":
channels = ["--override-channels"] + ["--channel=%s" % k for k in channels] channels = ["--override-channels"] + ["--channel=%s" % k for k in channels]
conda_cmd = "install" if args.envname in ("base", "root") else "create" conda_cmd = "install" if args.envname in ("base", "root") else "create"
cmd = ( cmd = (
[conda_bin, conda_cmd] [conda_bin, conda_cmd, "--yes"]
+ conda_verbosity + conda_verbosity
+ channels + channels
+ ["-n", args.envname, "bob.devtools"] + ["-n", args.envname, "bob.devtools"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment