From 6cddf8ed38cb928fca8fd123f7c7647f173ecfaf Mon Sep 17 00:00:00 2001 From: mhuen Date: Tue, 18 Oct 2022 11:50:35 +0200 Subject: [PATCH] Search additional paths to find icecube includes for cvmfs icetray --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index aaca4a1..415b6a6 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,16 @@ def get_icecube_includes(): if 'SROOT' in os.environ: include_dirs.append(os.path.join(os.environ['SROOT'], 'include/')) + # get include paths for GitHub icetray builds in cvmfs + # get directory parts before and after software system + dir_parts = os.environ['I3_SRC'].split('/metaprojects/') + # remove the specified software system + prefix = os.path.dirname(dir_parts[0]) + include_pattern = os.path.join( + prefix, 'metaprojects', dir_parts[1], '*/public') + cvmfs_include_dirs = glob.glob(include_pattern) + include_dirs.extend(cvmfs_include_dirs) + return include_dirs