Skip to content

Commit 5f82b2c

Browse files
committed
Update micromamba installation
1 parent 7d4ac3b commit 5f82b2c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

repo2docker/buildpacks/conda/install-base-env.bash

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ URL="https://anaconda.org/conda-forge/micromamba/0.17.0/download/linux-64/microm
1313
unset HOME
1414
mkdir -p ${CONDA_DIR}
1515

16-
time wget ${URL}
17-
mkdir -p /tmp/bin
18-
mv micromamba-nightly-linux-64 /tmp/bin/micromamba
16+
time wget -qO- ${URL} | tar -xvj bin/micromamba
1917
chmod 0755 /tmp/bin/micromamba
2018

2119
export MAMBA_ROOT_PREFIX=${CONDA_DIR}
2220
export MAMBA_EXE="/tmp/bin/micromamba"
2321

24-
eval "$(./bin/micromamba shell hook -p ${CONDA_DIR} -s posix)"
25-
./bin/micromamba shell init -s bash -p ${CONDA_DIR}
22+
eval "$(/tmp/bin/micromamba shell hook -p ${CONDA_DIR} -s posix)"
2623

2724
micromamba activate
2825

tests/conda/binder-dir/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ from subprocess import check_output
55
assert sys.version_info[:2] == (3, 5), sys.version
66

77
out = check_output(["/tmp/bin/micromamba", "--version"]).decode("utf8").strip()
8-
assert out == "0.16.0", out
8+
assert out == "0.17.0", out
99

1010
import numpy

0 commit comments

Comments
 (0)