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
pull/1024/head
Min RK 2021-03-03 13:17:46 +01:00
rodzic 93de3872a4
commit d7c26b7a79
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ time mamba install -y mamba==${MAMBA_VERSION}
echo "installing notebook env:" echo "installing notebook env:"
cat /tmp/environment.yml cat /tmp/environment.yml
time mamba env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml time mamba create --prefix ${NB_PYTHON_PREFIX} --file /tmp/environment.yml
# empty conda history file, # empty conda history file,
# which seems to result in some effective pinning of packages in the initial env, # 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
echo "installing kernel env:" echo "installing kernel env:"
cat /tmp/kernel-environment.yml cat /tmp/kernel-environment.yml
time mamba env create -p ${KERNEL_PYTHON_PREFIX} -f /tmp/kernel-environment.yml time mamba create --prefix ${KERNEL_PYTHON_PREFIX} --file /tmp/kernel-environment.yml
${KERNEL_PYTHON_PREFIX}/bin/ipython kernel install --prefix "${NB_PYTHON_PREFIX}" ${KERNEL_PYTHON_PREFIX}/bin/ipython kernel install --prefix "${NB_PYTHON_PREFIX}"
echo '' > ${KERNEL_PYTHON_PREFIX}/conda-meta/history echo '' > ${KERNEL_PYTHON_PREFIX}/conda-meta/history
mamba list -p ${KERNEL_PYTHON_PREFIX} mamba list -p ${KERNEL_PYTHON_PREFIX}