-
Notifications
You must be signed in to change notification settings - Fork 7
/
install-topeft.sh
executable file
·39 lines (30 loc) · 1.03 KB
/
install-topeft.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
. install-common.sh
# Installing fresh from conda is too slow, use micromamba instead.
curl -L micro.mamba.pm/install.sh >install-micromamba.sh
chmod 755 install-micromamba.sh
bash ./install-micromamba.sh
# Activate the shell hooks without starting a new shell.
export MAMBA_ROOT_PREFIX=$HOME/micromamba
eval "$($HOME/.local/bin/micromamba shell hook --shell bash)"
# Activate the root environment
micromamba activate
CFG_DIR=$(realpath topcoffea-conf)
DATA_FILE=${CFG_DIR}/ttHJet_UL17_R1B14_NAOD-00000_10194_NDSkim.root
CFG=$(realpath ${CFG_DIR}/UL17_private_ttH_for_CI.json)
if [[ ! -f ${DATA_FILE} ]]
then
curl -L -o ${DATA_FILE} https://ccl.cse.nd.edu/workflows/topcoffea-test-data/ttHJet_UL17_R1B14_NAOD-00000_10194_NDSkim.root
fi
git clone https://github.com/TopEFT/topeft.git
cd topeft
unset PYTHONPATH
micromamba create -y -n coffea-env -f environment.yml
micromamba activate coffea-env
pip install -e .
cd ..
git clone https://github.com/TopEFT/topcoffea.git
cd topcoffea
unset PYTHONPATH
pip install -e .
cd ..