Fix how channels are added to -c command

This commit is contained in:
YuviPanda
2023-09-29 14:38:54 -07:00
parent 9bde7e4680
commit 58a679f584

View File

@@ -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)