diff options
author | Denis Davydov <davydden@gmail.com> | 2016-03-24 13:47:07 +0100 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-03-25 11:56:40 +0100 |
commit | c33a63cabc8dcd8c71fc87de60a883cef4a4dae2 (patch) | |
tree | 452bc6c8c395dcc16f047fc641ff56acfa0c0437 /var | |
parent | 416fcd081013afa8349d311909d50b21d9685674 (diff) | |
download | spack-c33a63cabc8dcd8c71fc87de60a883cef4a4dae2.tar.gz spack-c33a63cabc8dcd8c71fc87de60a883cef4a4dae2.tar.bz2 spack-c33a63cabc8dcd8c71fc87de60a883cef4a4dae2.tar.xz spack-c33a63cabc8dcd8c71fc87de60a883cef4a4dae2.zip |
fix python installation
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/trilinos/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py index 3beadeb798..886893b639 100644 --- a/var/spack/repos/builtin/packages/trilinos/package.py +++ b/var/spack/repos/builtin/packages/trilinos/package.py @@ -186,3 +186,14 @@ class Trilinos(Package): cmake('..', *options) make() make('install') + + # When trilinos is built with Python, libpytrilinos is included through + # cmake configure files. Namely, Trilinos_LIBRARIES in TrilinosConfig.cmake + # contains pytrilinos. This leads to a run-time error: + # Symbol not found: _PyBool_Type + # and prevents Trilinos to be used in any C++ code, which links executable + # against the libraries listed in Trilinos_LIBRARIES. + # See https://github.com/Homebrew/homebrew-science/issues/2148#issuecomment-103614509 + # A workaround it to remove PyTrilinos from the COMPONENTS_LIST : + if '+python' in self.spec: + filter_file(r'(?:SET\(COMPONENTS_LIST.*)(PyTrilinos;)(?:.*)', '', '%s/cmake/Trilinos/TrilinosConfig.cmake' % prefix.lib) |