From 58a679f584d40dd531731b30ed2a07414a548d2f Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Fri, 29 Sep 2023 14:38:54 -0700 Subject: [PATCH] Fix how channels are added to -c command --- tljh/conda.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tljh/conda.py b/tljh/conda.py index aa4b051..c39dc32 100644 --- a/tljh/conda.py +++ b/tljh/conda.py @@ -117,7 +117,8 @@ def ensure_conda_packages(prefix, packages, channels=('conda-forge',), force_rei # avoids problems with RemoveError upgrading conda from old versions cmd += ["--force-reinstall"] - cmd += ["-c", channel for channel in channels] + for channel in channels: + cmd += ["-c", channel] abspath = os.path.abspath(prefix)