Skip to content

Commit

Permalink
Revert to use MAMBA_EXE
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Sylvain Corlay <sylvain.corlay@gmail.com>
  • Loading branch information
jjerphan and SylvainCorlay committed Aug 27, 2024
1 parent 4a02cc3 commit 14addc5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions repo2docker/buildpacks/conda/install-base-env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ echo "installing notebook env:"
cat "${NB_ENVIRONMENT_FILE}"


time ${MICROMAMBA_EXE} create -p ${NB_PYTHON_PREFIX} --file "${NB_ENVIRONMENT_FILE}"
time ${MAMBA_EXE} create -p ${NB_PYTHON_PREFIX} --file "${NB_ENVIRONMENT_FILE}"

if [[ ! -z "${NB_REQUIREMENTS_FILE:-}" ]]; then
echo "installing pip requirements"
Expand All @@ -66,7 +66,7 @@ if [[ ! -z "${KERNEL_ENVIRONMENT_FILE:-}" ]]; then
# install kernel env and register kernelspec
echo "installing kernel env:"
cat "${KERNEL_ENVIRONMENT_FILE}"
time ${MICROMAMBA_EXE} create -p ${KERNEL_PYTHON_PREFIX} --file "${KERNEL_ENVIRONMENT_FILE}"
time ${MAMBA_EXE} create -p ${KERNEL_PYTHON_PREFIX} --file "${KERNEL_ENVIRONMENT_FILE}"

if [[ ! -z "${KERNEL_REQUIREMENTS_FILE:-}" ]]; then
echo "installing pip requirements for kernel"
Expand All @@ -76,18 +76,18 @@ if [[ ! -z "${KERNEL_ENVIRONMENT_FILE:-}" ]]; then

${KERNEL_PYTHON_PREFIX}/bin/ipython kernel install --prefix "${NB_PYTHON_PREFIX}"
echo '' > ${KERNEL_PYTHON_PREFIX}/conda-meta/history
${MICROMAMBA_EXE} list -p ${KERNEL_PYTHON_PREFIX}
${MAMBA_EXE} list -p ${KERNEL_PYTHON_PREFIX}
fi

# Clean things out!
time ${MICROMAMBA_EXE} clean --all -f -y
time ${MAMBA_EXE} clean --all -f -y

# Remove the pip cache created as part of installing micromamba
rm -rf /root/.cache

chown -R $NB_USER:$NB_USER ${CONDA_DIR}

${MICROMAMBA_EXE} list -p ${NB_PYTHON_PREFIX}
${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX}

# Set NPM config
${NB_PYTHON_PREFIX}/bin/npm config --global set prefix ${NPM_DIR}

0 comments on commit 14addc5

Please sign in to comment.