fix filter_file
This commit is contained in:
parent
c33a63cabc
commit
d096b155f4
1 changed files with 1 additions and 1 deletions
|
@ -196,4 +196,4 @@ def install(self, spec, prefix):
|
|||
# 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)
|
||||
filter_file(r'(SET\(COMPONENTS_LIST.*)(PyTrilinos;)(.*)', (r'\1\3'), '%s/cmake/Trilinos/TrilinosConfig.cmake' % prefix.lib)
|
||||
|
|
Loading…
Reference in a new issue