Merge pull request #992 from SylvainCorlay/try-mambaforge

Use mambaforge instead of miniforge
pull/998/head
Min RK 2020-12-08 15:30:18 +01:00 zatwierdzone przez GitHub
commit 560b1d96a0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 6 dodań i 9 usunięć

Wyświetl plik

@ -5,12 +5,12 @@ set -ex
cd $(dirname $0)
MINIFORGE_VERSION=4.8.2-1
MAMBA_VERSION=0.6.1
MINIFORGE_VERSION=4.9.2-2
MAMBA_VERSION=0.7.4
# SHA256 for installers can be obtained from https://github.com/conda-forge/miniforge/releases
SHA256SUM="4f897e503bd0edfb277524ca5b6a5b14ad818b3198c2f07a36858b7d88c928db"
SHA256SUM="7a7bfaff87680298304a97ba69bcf92f66c810995a7155a2918b99fafb8ca1dc"
URL="https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Miniforge3-${MINIFORGE_VERSION}-Linux-x86_64.sh"
URL="https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Mambaforge-${MINIFORGE_VERSION}-Linux-x86_64.sh"
INSTALLER_PATH=/tmp/miniforge-installer.sh
# make sure we don't do anything funky with user's $HOME
@ -42,10 +42,7 @@ echo 'update_dependencies: false' >> ${CONDA_DIR}/.condarc
# avoid future changes to default channel_priority behavior
conda config --system --set channel_priority "flexible"
# do all installation with mamba
time conda install -y mamba==${MAMBA_VERSION}
# switch back to conda
# ln -s $CONDA_DIR/bin/conda $CONDA_DIR/bin/mamba
time mamba install -y mamba==${MAMBA_VERSION}
echo "installing notebook env:"
cat /tmp/environment.yml

Wyświetl plik

@ -5,6 +5,6 @@ from subprocess import check_output
assert sys.version_info[:2] == (3, 5), sys.version
out = check_output(["conda", "--version"]).decode("utf8").strip()
assert out == "conda 4.8.2", out
assert out == "conda 4.9.2", out
import numpy