File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 44set -x
55
66echo " Installing a fresh version of Miniforge3."
7- MINIFORGE_URL=" https://github.com/conda-forge/miniforge/releases/download/4.8.3-1"
8- MINIFORGE_FILE=" Miniforge3-4.8.3-1-MacOSX-x86_64.sh"
9- curl -L -O " ${MINIFORGE_URL} /${MINIFORGE_FILE} "
10- bash " ${MINIFORGE_FILE} " -b
7+ # Keep variable names in sync with
8+ # https://github.com/conda-forge/docker-images/blob/main/scripts/run_commands
9+ miniforge_arch=" $( uname -m) "
10+ miniforge_version=" 4.10.3-10"
11+ condapkg=" https://github.com/conda-forge/miniforge/releases/download/${miniforge_version} /Mambaforge-${miniforge_version} -MacOSX-${miniforge_arch} .sh"
12+ if [ " $( uname -m) " = " x86_64" ]; then
13+ conda_chksum=" 7c44259a0982cd3ef212649678af5f0dd4e0bb7306e8fffc93601dd1d739ec0b"
14+ elif [ " $( uname -m) " = " arm64" ]; then
15+ conda_chksum=" 72bc86612ab9435915b616c2edb076737cbabe2c33fd684d58c2f9ae72e1957c"
16+ else
17+ exit 1
18+ fi
19+ curl -s -L " $condapkg " > miniconda.sh
20+ openssl sha256 miniconda.sh | grep $conda_chksum
21+
22+ bash miniconda.sh -b -p ~ /conda
1123
1224echo " Configuring conda."
1325# shellcheck disable=SC1090
14- source ~ /miniforge3 /bin/activate root
26+ source ~ /conda /bin/activate root
1527
1628export CONSTRUCT_ROOT=" ${PWD} "
1729mkdir -p build
You can’t perform that action at this time.
0 commit comments