From de7fda47db4be3b3c8345499bef7494114f4a71e Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Wed, 27 Jun 2018 03:05:24 -0700 Subject: [PATCH] Install conda packages from conda-forge explicitly I don't think the default channel fields in construct.yaml are working. --- tljh/conda.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tljh/conda.py b/tljh/conda.py index 23894f9..994bc79 100644 --- a/tljh/conda.py +++ b/tljh/conda.py @@ -30,13 +30,14 @@ def ensure_conda_env(prefix): def ensure_conda_packages(prefix, packages): """ - Ensure packages are installed in the conda prefix. + Ensure packages (from conda-forge) are installed in the conda prefix. """ abspath = os.path.abspath(prefix) # Let subprocess errors propagate # FIXME: raise different exception when using raw_output = subprocess.check_output(CONDA_EXECUTABLE + [ 'install', + '-c', 'conda-forge', # Make customizable if we ever need to '--json', '--prefix', abspath ] + packages).decode()