build files for new miniconda base 2024.08
added 2 conda environments - jupyterhub-4.1.6_lab4_py3.12 - datascience_2024_py3.12
This commit is contained in:
@@ -1,30 +1,10 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
# pbuild::add_to_group 'Programming'
|
||||
|
||||
|
||||
source "${BUILDBLOCK_DIR}/${V_PKG}/config.sh"
|
||||
if [[ x"$CONDA_VERSION" == x ]]; then
|
||||
echo "ERROR: CONDA_VERSION for this release has not been defined" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MINICONDA_EXE="Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh"
|
||||
DOWNLOAD_URL="https://repo.anaconda.com/miniconda/$MINICONDA_EXE"
|
||||
MINICONDA_EXE="miniconda-${V_PKG}.sh"
|
||||
INSTALLER="$PMODULES_DISTFILESDIR/$MINICONDA_EXE"
|
||||
|
||||
pbuild::pre_prep() {
|
||||
# Need to implement own downloader since pbuild::set_download_url and pbuild::prep
|
||||
# currently only support tar files
|
||||
std::info "DEBUG: in function %s...\n" "$FUNCNAME: FUNCNAME=${FUNCNAME[*]}"
|
||||
if [[ -r "$INSTALLER" ]]; then
|
||||
std::info "%s using previously downloaded %s\n" \
|
||||
"${module_name}/${module_version}:" "$INSTALLER"
|
||||
else
|
||||
curl -fsSLo "$INSTALLER" "$DOWNLOAD_URL"
|
||||
fi
|
||||
}
|
||||
|
||||
pbuild::configure() {
|
||||
:
|
||||
}
|
||||
@@ -35,9 +15,9 @@ pbuild::compile() {
|
||||
|
||||
pbuild::install() {
|
||||
# Install conda
|
||||
bash "$INSTALLER" -b -p "$PREFIX/conda"
|
||||
bash "$INSTALLER" -b -p "$PREFIX/conda" || std::die 3 "Error calling installer!"
|
||||
|
||||
#echo "Installing PSI admintools for maintaining conda"
|
||||
std::info "%s Installing admintools ...\n" "${module_name}/${module_version}:"
|
||||
cp -r "${BUILDBLOCK_DIR}/files/admintools" "$PREFIX/admintools"
|
||||
# cp -r "${BUILDBLOCK_DIR}/files/admintools" "$PREFIX/admintools"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user