Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Jan 31, 2025
1 parent 548e763 commit 4a1d2db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions repo2docker/buildpacks/conda/activate-conda.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# enable conda and activate the notebook environment
set -ex
eval $(micromamba shell hook -s posix -r ${CONDA_DIR})
for name in conda mamba; do
eval $(mamba shell hook -s posix -r ${CONDA_DIR})
export MAMBA_ROOT_PREFIX="${CONDA_DIR}"
for name in conda; do
CONDA_PROFILE="${CONDA_DIR}/etc/profile.d/${name}.sh"
echo "Activating profile: ${CONDA_PROFILE}"
test -f $CONDA_PROFILE && . $CONDA_PROFILE
Expand Down
1 change: 0 additions & 1 deletion repo2docker/buildpacks/conda/install-base-env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ chmod 0755 "$MICROMAMBA_EXE"

# Setting up micromamba in this shell and permanently
eval "$(${MICROMAMBA_EXE} shell hook --root-prefix ${CONDA_DIR} -s posix)"
${MICROMAMBA_EXE} shell init -s bash --root-prefix ${CONDA_DIR}

micromamba activate

Expand Down

0 comments on commit 4a1d2db

Please sign in to comment.