[LCIO]: changes to install/CPATH for python bindings (#18512)

This commit is contained in:
Andre Sailer 2020-09-07 17:16:16 +02:00 committed by GitHub
parent b2b7bcd86a
commit 138e2ad0a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,3 +76,14 @@ def url_for_version(self, version):
def setup_run_environment(self, env):
env.set('LCIO', self.prefix)
env.prepend_path('PYTHONPATH', self.prefix.python)
# needed for the python bindings to find "Exceptions.h"
env.prepend_path('CPATH', self.prefix)
@run_after('install')
def install_source(self):
# these files are needed for the python bindings and root to
# find the headers
install_tree('src/cpp/include/pre-generated/',
self.prefix.include + '/pre-generated')
install('src/cpp/include/IOIMPL/LCEventLazyImpl.h',
self.prefix.include + '/IOIMPL/')