trilinos: fix @13.2: +python (#39370)

This commit is contained in:
ddeeptimahanti 2023-08-10 23:50:33 +08:00 committed by GitHub
parent b8bfaf65bf
commit 2ae8bbce9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -941,7 +941,7 @@ def filter_python(self):
# https://github.com/trilinos/Trilinos/issues/866
# A workaround is to remove PyTrilinos from the COMPONENTS_LIST
# and to remove -lpytrilonos from Makefile.export.Trilinos
if "+python" in self.spec:
if self.spec.satisfies("@:13.0.1 +python"):
filter_file(
r"(SET\(COMPONENTS_LIST.*)(PyTrilinos;)(.*)",
(r"\1\3"),