You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
523 B

#!/bin/bash
if [ ! -f "env/miniconda.sh" ]; then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O env/miniconda.sh
fi
if [ ! -d "env/tuner_env" ]; then
bash env/miniconda.sh -b -p env/tuner_env &&
(
source env/tuner_env/bin/activate
conda install -y -c conda-forge mamba
conda env create -f env/environment.yaml -n tuner
conda activate tuner
conda env config vars set PATH="/cvmfs/sft.cern.ch/lcg/external/texlive/latest/bin/x86_64-linux:${PATH}"
)
fi