summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndre Sailer <andre.philippe.sailer@cern.ch>2020-09-07 17:16:16 +0200
committerGitHub <noreply@github.com>2020-09-07 10:16:16 -0500
commit138e2ad0a1b34499dfe3fbc04f9347cf2f86ace1 (patch)
tree1de4c195dd5be3b573504c144ac2b9fe97677f27 /var
parentb2b7bcd86aa4cf55a419fdaa9edd8742f1eae345 (diff)
downloadspack-138e2ad0a1b34499dfe3fbc04f9347cf2f86ace1.tar.gz
spack-138e2ad0a1b34499dfe3fbc04f9347cf2f86ace1.tar.bz2
spack-138e2ad0a1b34499dfe3fbc04f9347cf2f86ace1.tar.xz
spack-138e2ad0a1b34499dfe3fbc04f9347cf2f86ace1.zip
[LCIO]: changes to install/CPATH for python bindings (#18512)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/lcio/package.py11
1 files changed, 11 insertions, 0 deletions
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 @@ class Lcio(CMakePackage):
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/')