Skip to content

Commit d7c26b7

Browse files
committed
use mamba create instead of mamba env create
I'm never sure what the difference is, but mamba env create doesn't accept explicit dependency format
1 parent 93de387 commit d7c26b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repo2docker/buildpacks/conda/install-miniforge.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ time mamba install -y mamba==${MAMBA_VERSION}
4646

4747
echo "installing notebook env:"
4848
cat /tmp/environment.yml
49-
time mamba env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml
49+
time mamba create --prefix ${NB_PYTHON_PREFIX} --file /tmp/environment.yml
5050

5151
# empty conda history file,
5252
# which seems to result in some effective pinning of packages in the initial env,
@@ -59,7 +59,7 @@ if [[ -f /tmp/kernel-environment.yml ]]; then
5959
echo "installing kernel env:"
6060
cat /tmp/kernel-environment.yml
6161

62-
time mamba env create -p ${KERNEL_PYTHON_PREFIX} -f /tmp/kernel-environment.yml
62+
time mamba create --prefix ${KERNEL_PYTHON_PREFIX} --file /tmp/kernel-environment.yml
6363
${KERNEL_PYTHON_PREFIX}/bin/ipython kernel install --prefix "${NB_PYTHON_PREFIX}"
6464
echo '' > ${KERNEL_PYTHON_PREFIX}/conda-meta/history
6565
mamba list -p ${KERNEL_PYTHON_PREFIX}

0 commit comments

Comments
 (0)