-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from Miniconda to Miniforge (#868)
* Move from Miniconda to Miniforge * Move from Miniconda to Miniforge
- Loading branch information
Showing
2 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# | ||
# Once installed, the Conda environment can be activated by running: | ||
# | ||
# source $CONDA_HOME/etc/profile.d/conda.sh | ||
# | ||
# conda activate | ||
|
||
set -ex | ||
|
||
MINIFORGE_VERSION="24.9.0-0" | ||
MINIFORGE_SHA256="77fb505f6266ffa1b5d59604cf6ba25948627e908928cbff148813957b1c28af" | ||
|
||
CONDA_HOME=${CONDA_HOME:="$HOME/conda"} | ||
export CONDA_HOME | ||
|
||
CONDARC="$HOME/.condarc" | ||
export CONDARC | ||
|
||
cat <<EOF > "$CONDARC" | ||
auto_update_conda: false | ||
always_yes: true | ||
ssl_verify: true | ||
show_channel_urls: true | ||
channels: | ||
- conda-forge | ||
EOF | ||
|
||
curl -sSL "https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Mambaforge-${MINIFORGE_VERSION}-Linux-x86_64.sh" -o ./miniforge.sh | ||
sha256sum ./miniforge.sh | grep "$MINIFORGE_SHA256" | ||
/bin/bash ./miniforge.sh -b -p "$CONDA_HOME" | ||
rm ./miniforge.sh |