diff --git a/var/spack/repos/builtin/packages/lcio/package.py b/var/spack/repos/builtin/packages/lcio/package.py index 66a0c66bf5..004e0d2763 100644 --- a/var/spack/repos/builtin/packages/lcio/package.py +++ b/var/spack/repos/builtin/packages/lcio/package.py @@ -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/')