Skip to content

Commit

Permalink
Search additional paths to find icecube includes for cvmfs icetray
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuen committed Oct 18, 2022
1 parent b93fa58 commit 6cddf8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 6cddf8e

Please sign in to comment.