Skip to content

Commit 560b1d9

Browse files
authored
Merge pull request #992 from SylvainCorlay/try-mambaforge
Use mambaforge instead of miniforge
2 parents f3229c1 + d8a3d7f commit 560b1d9

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

repo2docker/buildpacks/conda/install-miniforge.bash

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ 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
9+
MAMBA_VERSION=0.7.4
1010
# SHA256 for installers can be obtained from https://github.com/conda-forge/miniforge/releases
11-
SHA256SUM="4f897e503bd0edfb277524ca5b6a5b14ad818b3198c2f07a36858b7d88c928db"
11+
SHA256SUM="7a7bfaff87680298304a97ba69bcf92f66c810995a7155a2918b99fafb8ca1dc"
1212

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

1616
# make sure we don't do anything funky with user's $HOME
@@ -42,10 +42,7 @@ echo 'update_dependencies: false' >> ${CONDA_DIR}/.condarc
4242
# avoid future changes to default channel_priority behavior
4343
conda config --system --set channel_priority "flexible"
4444

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
45+
time mamba install -y mamba==${MAMBA_VERSION}
4946

5047
echo "installing notebook env:"
5148
cat /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)