Skip to content

CERN setup

Jochen Klein edited this page Sep 10, 2024 · 6 revisions

Usage of common installation of prerequisites

  • If you do not use direnv yet, add the following to your .bashrc/.zshrc/...

    eval "$(direnv hook zsh)"
  • Reopen your shell or source the respective rcfile.

  • Add a file .envrc with the following content in the root directory of mlhep (you might want to start from a fresh clone):

    layout python /home/jklein/sw/pyenv/versions/3.10.14/bin/python3
    path_add PYTHONPATH /home/jklein/sw/root/install/lib
    path_add LD_LIBRARY_PATH /home/jklein/sw/root/install/lib
    path_add LD_LIBRARY_PATH /home/jklein/sw/RooUnfold/install/lib
  • Change to the root directory of mlhep and run:

    direnv allow
  • Install required python packages and development version of mlhep using:

    pip install -r requirements.txt
    pip install -e .
  • Have fun!

Clone this wiki locally