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

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