Skip to content

Commit 6c1a272

Browse files
committed
Use mambaforge instead of miniforge
1 parent f3229c1 commit 6c1a272

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

repo2docker/buildpacks/conda/install-miniforge.bash

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ set -ex
55

66

77
cd $(dirname $0)
8-
MINIFORGE_VERSION=4.8.2-1
9-
MAMBA_VERSION=0.6.1
8+
MINIFORGE_VERSION=4.9.2-2
109
# SHA256 for installers can be obtained from https://github.com/conda-forge/miniforge/releases
11-
SHA256SUM="4f897e503bd0edfb277524ca5b6a5b14ad818b3198c2f07a36858b7d88c928db"
10+
SHA256SUM="7a7bfaff87680298304a97ba69bcf92f66c810995a7155a2918b99fafb8ca1dc"
1211

13-
URL="https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Miniforge3-${MINIFORGE_VERSION}-Linux-x86_64.sh"
12+
URL="https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Mambaforge-${MINIFORGE_VERSION}-Linux-x86_64.sh"
1413
INSTALLER_PATH=/tmp/miniforge-installer.sh
1514

1615
# make sure we don't do anything funky with user's $HOME
@@ -42,11 +41,6 @@ echo 'update_dependencies: false' >> ${CONDA_DIR}/.condarc
4241
# avoid future changes to default channel_priority behavior
4342
conda config --system --set channel_priority "flexible"
4443

45-
# do all installation with mamba
46-
time conda install -y mamba==${MAMBA_VERSION}
47-
# switch back to conda
48-
# ln -s $CONDA_DIR/bin/conda $CONDA_DIR/bin/mamba
49-
5044
echo "installing notebook env:"
5145
cat /tmp/environment.yml
5246
time mamba env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml

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(["conda", "--version"]).decode("utf8").strip()
8-
assert out == "conda 4.8.2", out
8+
assert out == "conda 4.9.2", out
99

1010
import numpy

0 commit comments

Comments
 (0)