Setup the environment
You can install your standalone conda envrionment via yaml or on the lxplus you can directly jump to setup
Standalone conda environment
Caution
suggested to install under bash environment
For installing Micromamba, see [here]
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
# Run and follow instructions on screen
bash Miniforge3-$(uname)-$(uname -m).sh
micromamba activate
NOTE: always make sure that conda, python, and pip point to local micromamba installation (which conda etc.).
You can simply create the environment through the existing test_env.yml under your micromamba environment using micromamba, and activate it
micromamba env create -f test_env.yml
Setup the framework
# activate enviroment once you have coffea framework
conda/micromamba activate btv_coffea
conda/micromamba activate /eos/home-m/milee/miniforge3/envs/btv_coffea # contains coffea 0.7.22
# only first time, including submodules
git clone git@github.com:cms-btv-pog/BTVNanoCommissioning.git
# Once the environment is set up, compile the python package:
pip install -e .
pip install -e .[dev,docs] # for developer
You can still install additional packages itself by pip install $PACKAGE
conda/micromamba activate btv_coffea is required to setup
Make sure that ‘dasgoclient’ command is found by ensuring it is in your $PATH variable.
Please, run source env_setup_complete.sh after having activated the environment to make sure that the $PATH variable is correctly configured.