Start anaconda build module

Not currently tested pending AFS volume creation.

Derives from EM/crYOLO.
This commit is contained in:
Spencer Bliven
2019-03-28 10:25:49 +01:00
parent da13fe1560
commit 3171ebcfda
4 changed files with 96 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
#!/usr/bin/env modbuild
pbuild::add_to_group 'Programming'
pbuild::prep() {
echo "prepping"
source "${BUILDBLOCK_DIR}/files/config-$V.sh"
mkdir -p "$SRC_DIR"
echo curl -fsSLo "$SRC_DIR/miniconda.sh" "https://repo.anaconda.com/miniconda/Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh"
curl -fsSLo "$SRC_DIR/miniconda.sh" "https://repo.anaconda.com/miniconda/Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh"
}
pbuild::configure() {
:
}
pbuild::compile() {
:
}
pbuild::install() {
source "${BUILDBLOCK_DIR}/files/config-$V.sh"
mkdir -p $PREFIX
# Install conda
bash "$SRC_DIR/miniconda.sh" -b -p $PREFIX/conda
# Load conda
source "$PREFIX/conda/etc/profile.d/conda.sh"
# Install anaconda versions
for PY in "${PYTHON_VERSION[@]}"; do
conda install -y anaconda=$V python=$PY
done
# Deactivate
source deactivate
# Unload conda;
#unset $(set|sed -rn 's/^(_?conda[a-z_]*).*$/\1/pI');
}