From 2fd406fa75f79ad88be09ec4ea5bdeba96f650b3 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Thu, 3 Oct 2024 03:27:16 -0400 Subject: [PATCH] backwards_ecal,ecal_gaps: install python dependencies to venv --- benchmarks/backwards_ecal/config.yml | 3 ++- benchmarks/backwards_ecal/requirements.txt | 4 +++- benchmarks/ecal_gaps/config.yml | 3 ++- benchmarks/ecal_gaps/requirements.txt | 4 +++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/benchmarks/backwards_ecal/config.yml b/benchmarks/backwards_ecal/config.yml index 9eff9b58..c2a9a0f7 100644 --- a/benchmarks/backwards_ecal/config.yml +++ b/benchmarks/backwards_ecal/config.yml @@ -24,7 +24,8 @@ bench:backwards_ecal: needs: - ["sim:backwards_ecal"] script: - - export PYTHONUSERBASE=$LOCAL_DATA_PATH/deps + - unset PYTHONPATH + - python -m venv .venv; source .venv/bin/activate - pip install -r benchmarks/backwards_ecal/requirements.txt - snakemake --cores 1 backwards_ecal diff --git a/benchmarks/backwards_ecal/requirements.txt b/benchmarks/backwards_ecal/requirements.txt index 3d0f6336..beab9190 100644 --- a/benchmarks/backwards_ecal/requirements.txt +++ b/benchmarks/backwards_ecal/requirements.txt @@ -1,4 +1,6 @@ awkward >= 2.4.0 +matplotlib +numpy scikit-learn -uproot >= 5.2.0 +uproot vector diff --git a/benchmarks/ecal_gaps/config.yml b/benchmarks/ecal_gaps/config.yml index 9d967c87..4a5eb7c2 100644 --- a/benchmarks/ecal_gaps/config.yml +++ b/benchmarks/ecal_gaps/config.yml @@ -13,7 +13,8 @@ bench:ecal_gaps: - ["sim:ecal_gaps"] script: - ln -s $LOCAL_DATA_PATH/input input - - export PYTHONUSERBASE=$LOCAL_DATA_PATH/deps + - unset PYTHONPATH + - python -m venv .venv; source .venv/bin/activate - pip install -r benchmarks/ecal_gaps/requirements.txt - snakemake --cores 8 ecal_gaps diff --git a/benchmarks/ecal_gaps/requirements.txt b/benchmarks/ecal_gaps/requirements.txt index dc376fe2..16dcd29c 100644 --- a/benchmarks/ecal_gaps/requirements.txt +++ b/benchmarks/ecal_gaps/requirements.txt @@ -3,5 +3,7 @@ dask >= 2023 dask_awkward dask_histogram distributed >= 2023 +matplotlib +numpy pyhepmc -uproot ~= 5.2.0 +uproot