Merge branch '290-new-miniconda-installation-2024-08-in-anaconda-pmodule' into 'master'
build files for new miniconda base 2024.08 Closes #290 See merge request Pmodules/buildblocks!454
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Clean environment based on pure conda-forge packages
|
||||
name: datascience_2024_py3.12
|
||||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.12
|
||||
- pandas
|
||||
- xlrd
|
||||
- numpy
|
||||
- scipy
|
||||
- scikit-learn
|
||||
- matplotlib
|
||||
- seaborn
|
||||
- tensorflow
|
||||
- keras
|
||||
- pytorch
|
||||
- pytables
|
||||
- ipython
|
||||
# keras 2.1.6 not available from conda-forge for py37
|
||||
# - keras=2.1.6
|
||||
- nb_conda_kernels
|
||||
- ipywidgets
|
||||
- plotly
|
||||
- dask
|
||||
- dask-jobqueue
|
||||
- python-graphviz
|
||||
- bayesian-optimization
|
||||
- hdf5storage
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
name: jupyterhub-4.1.6_lab4_py3.12
|
||||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.12
|
||||
- jupyterhub=4.1.6
|
||||
- jupyterlab>4
|
||||
- nb_conda
|
||||
- nb_conda_kernels
|
||||
- jupyter_contrib_nbextensions
|
||||
- ipywidgets
|
||||
- batchspawner
|
||||
# - jupyter_server<2.11
|
||||
# needed for widgets!
|
||||
- ipympl
|
||||
- pip
|
||||
- jupytext
|
||||
- jupyterlab-git
|
||||
- git
|
||||
- psycopg2
|
||||
- plotly
|
||||
- jupyterlab-plotly-extension
|
||||
- flask
|
||||
# - sqlalchemy=1.4.39
|
||||
################# PIP packages
|
||||
# - pip:
|
||||
# - git+https://github.com/jupyterhub/batchspawner.git@e89bf6a
|
||||
|
||||
6
Programming/anaconda/2024.08/config.sh
Normal file
6
Programming/anaconda/2024.08/config.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
# version-specific settings
|
||||
|
||||
# Miniconda version. Defaults to "latest"
|
||||
# Should match the version distributed with anaconda
|
||||
CONDA_VERSION="24.5.0-0"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
15
Programming/anaconda/files/config.yaml
Normal file
15
Programming/anaconda/files/config.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
format: 1
|
||||
anaconda:
|
||||
defaults:
|
||||
group: Programming
|
||||
overlay: base
|
||||
relstage: stable
|
||||
|
||||
versions:
|
||||
2024.08:
|
||||
config:
|
||||
urls:
|
||||
- url: https://repo.anaconda.com/miniconda/Miniconda3-py39_24.5.0-0-Linux-x86_64.sh
|
||||
name: miniconda-2024.08.sh
|
||||
unpacker: none
|
||||
relstage: unstable
|
||||
Reference in New Issue
Block a user