-
Notifications
You must be signed in to change notification settings - Fork 47
CERN setup
Jochen Klein edited this page Sep 11, 2024
·
6 revisions
-
If you do not use
direnvyet, add the following to your.bashrc/.zshrc/...eval "$(direnv hook $SHELL)"
-
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):PYTHON_VERSION=3.10.14 ROOT_VERSION=v6-32-04 ROOUNFOLD_VERSION=2.0.1 PREFIX=/home/pyadmin/software_mlhep layout python ${PREFIX}/install/pyenv/versions/${PYTHON_VERSION}/bin/python3 path_add PYTHONPATH ${PREFIX}/install/root-${ROOT_VERSION}_py-${PYTHON_VERSION}/lib PATH_add ${PREFIX}/install/root-${ROOT_VERSION}_py-${PYTHON_VERSION}/bin path_add LD_LIBRARY_PATH ${PREFIX}/install/root-${ROOT_VERSION}_py-${PYTHON_VERSION}/lib path_add LD_LIBRARY_PATH ${PREFIX}/build/RooUnfold-${ROOUNFOLD_VERSION}_root-${ROOT_VERSION}_py-${PYTHON_VERSION}
-
Change to the root directory of
mlhepand run:direnv allow
-
Install required python packages and development version of
mlhepusing:pip install -r requirements.txt pip install -e . -
Have fun!