File tree 3 files changed +9
-10
lines changed
repo2docker/buildpacks/conda
tests/conda/py35-binder-dir
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
# enable conda and activate the notebook environment
2
- eval $( micromamba shell hook -s posix -p ${CONDA_DIR} )
2
+ set -ex
3
+ eval $( micromamba shell hook -s posix -r ${CONDA_DIR} )
3
4
for name in conda mamba; do
4
5
CONDA_PROFILE=" ${CONDA_DIR} /etc/profile.d/${name} .sh"
6
+ echo " Activating profile: ${CONDA_PROFILE} "
5
7
test -f $CONDA_PROFILE && . $CONDA_PROFILE
6
8
done
7
9
if [[ " ${KERNEL_PYTHON_PREFIX} " != " ${NB_PYTHON_PREFIX} " ]]; then
Original file line number Diff line number Diff line change 5
5
6
6
cd $( dirname $0 )
7
7
8
- export MAMBA_VERSION=1.5.9
9
- export CONDA_VERSION=24.5 .0
8
+ export MAMBA_VERSION=" 2.0.5 "
9
+ export CONDA_VERSION=24.11 .0
10
10
11
11
URL=" https://anaconda.org/conda-forge/micromamba/${MAMBA_VERSION} /download/${CONDA_PLATFORM} /micromamba-${MAMBA_VERSION} -0.tar.bz2"
12
12
@@ -21,7 +21,7 @@ time wget -qO- ${URL} | tar -xvj bin/micromamba
21
21
mv bin/micromamba " $MICROMAMBA_EXE "
22
22
chmod 0755 " $MICROMAMBA_EXE "
23
23
24
- eval " $( ${MICROMAMBA_EXE} shell hook -p ${CONDA_DIR} -s posix) "
24
+ eval " $( ${MICROMAMBA_EXE} shell hook --root-prefix ${CONDA_DIR} -s posix) "
25
25
26
26
micromamba activate
27
27
Original file line number Diff line number Diff line change @@ -16,13 +16,10 @@ v = out.split()[1]
16
16
assert v [:3 ] == "3.5" , out
17
17
18
18
out = sh (["micromamba" , "--version" ])
19
- assert out == "1.5.9 " , out
19
+ assert out == "2.0.5 " , out
20
20
21
21
out = sh (["mamba" , "--version" ])
22
- assert (
23
- out
24
- == """mamba 1.5.9
25
- conda 24.5.0"""
26
- ), out
22
+ assert out == "2.0.5" , out
23
+
27
24
28
25
sh ([kernel_python , "-c" , "import numpy" ])
You can’t perform that action at this time.
0 commit comments