1- #! /bin/bash
2-
1+ #! /bin/bash
32set -e
43
5- # - Installs mambaforge to ${HOME}/mambaforge. Version is determined by common.sh,
4+ # - Installs miniforge to ${HOME}/mambaforge. Version is determined by common.sh,
65# which is downloaded at runtime.
76# - Sets channel order and sets strict channel priority
87# - Installs bioconda-utils into a "bioconda" env (unless
2221source common.sh
2322
2423# assert that common.sh has set the variables we need
25- for var in BIOCONDA_UTILS_TAG MAMBAFORGE_VER MAMBAFORGE_INSTALLATION_DIR
24+ for var in BIOCONDA_UTILS_TAG MINIFORGE_VER MINIFORGE_INSTALLATION_DIR
2625do
2726 if [ -z ${var+x} ]
2827 then
@@ -38,27 +37,27 @@ if [[ $(uname) == "Darwin" ]]; then
3837 OS=" MacOSX"
3938
4039 # Remove existing installation on macOS runners
41- sudo rm -rf ${MAMBAFORGE_INSTALLATION_DIR }
42- sudo mkdir -p $( dirname $MAMBAFORGE_INSTALLATION_DIR )
43- sudo chown -R $USER $( dirname $MAMBAFORGE_INSTALLATION_DIR )
40+ sudo rm -rf ${MINIFORGE_INSTALLATION_DIR }
41+ sudo mkdir -p $( dirname $MINIFORGE_INSTALLATION_DIR )
42+ sudo chown -R $USER $( dirname $MINIFORGE_INSTALLATION_DIR )
4443
4544 # conda-forge-ci-setup does some additional setup for Mac.
4645 BIOCONDA_ADDITIONAL_INSTALL_PKGS=" conda-forge-ci-setup"
4746else
48- mkdir -p $( dirname $MAMBAFORGE_INSTALLATION_DIR )
47+ mkdir -p $( dirname $MINIFORGE_INSTALLATION_DIR )
4948 OS=" Linux"
5049 BIOCONDA_ADDITIONAL_INSTALL_PKGS=" "
5150fi
5251
53- MINIFORGE_URL=" https://github.com/conda-forge/miniforge/releases/download/${MAMBAFORGE_VER } /Miniforge3-${MAMBAFORGE_VER } -${OS} -${ARCH} .sh"
52+ MINIFORGE_URL=" https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VER } /Miniforge3-${MINIFORGE_VER } -${OS} -${ARCH} .sh"
5453
55- # Install mambaforge
54+ # Install miniforge
5655echo Download ${MINIFORGE_URL}
57- curl -L ${MINIFORGE_URL} > mambaforge .sh
58- head mambaforge .sh
59- bash mambaforge .sh -b -p " ${MAMBAFORGE_INSTALLATION_DIR } "
56+ curl -L ${MINIFORGE_URL} > miniforge .sh
57+ head miniforge .sh
58+ bash miniforge .sh -b -p " ${MINIFORGE_INSTALLATION_DIR } "
6059
61- export PATH=" ${MAMBAFORGE_INSTALLATION_DIR } /bin:${PATH} "
60+ export PATH=" ${MINIFORGE_INSTALLATION_DIR } /bin:${PATH} "
6261
6362# Set up channels
6463# disable build preparation here because we don't yet have the local channel from conda-build
@@ -69,24 +68,24 @@ BIOCONDA_DISABLE_BUILD_PREP=1 bash configure-conda.sh
6968# which case set BIOCONDA_DISABLE_BUILD_PREP to a non-zero value.
7069if [ ${BIOCONDA_DISABLE_BUILD_PREP:= 0} == 0 ]; then
7170
72- source ${MAMBAFORGE_INSTALLATION_DIR } /etc/profile.d/conda.sh
73- source ${MAMBAFORGE_INSTALLATION_DIR } /etc/profile.d/mamba.sh
71+ source ${MINIFORGE_INSTALLATION_DIR } /etc/profile.d/conda.sh
72+ source ${MINIFORGE_INSTALLATION_DIR } /etc/profile.d/mamba.sh
7473
7574 # set up env with all dependencies
7675 conda create -n bioconda -y --file https://raw.githubusercontent.com/bioconda/bioconda-utils/$BIOCONDA_UTILS_TAG /bioconda_utils/bioconda_utils-requirements.txt $BIOCONDA_ADDITIONAL_INSTALL_PKGS
7776
7877 conda activate bioconda
7978
8079 # install bioconda-utils itself via pip (this way we don't always have to wait for the conda package to be built before being able to fix things here)
81- pip install git+https://github.com/bioconda/bioconda-utils.git@$BIOCONDA_UTILS_TAG
80+ pip install git+https://github.com/bioconda/bioconda-utils.git@$BIOCONDA_UTILS_TAG --no-build-isolation --no-cache-dir --use-pep517
8281
8382 # Set local channel as highest priority (requires conda-build, which is
8483 # installed as a dependency of bioconda-utils)
85- mkdir -p " ${MAMBAFORGE_INSTALLATION_DIR } /conda-bld/{noarch,linux-64,osx-64,linux-aarch64,osx-arm64}"
84+ mkdir -p " ${MINIFORGE_INSTALLATION_DIR } /conda-bld/{noarch,linux-64,osx-64,linux-aarch64,osx-arm64}"
8685 # The base installation does not include conda-index, so use "command conda" to run bioconda
8786 # env's "conda index".
88- command conda index " ${MAMBAFORGE_INSTALLATION_DIR } /conda-bld"
89- conda config --add channels " file://${MAMBAFORGE_INSTALLATION_DIR } /conda-bld"
87+ command conda index " ${MINIFORGE_INSTALLATION_DIR } /conda-bld"
88+ conda config --add channels " file://${MINIFORGE_INSTALLATION_DIR } /conda-bld"
9089fi
9190
9291echo " =========="
0 commit comments