From 77fd1dde5e34287531bea36ef17cae562dae05cf Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sat, 21 Dec 2024 06:27:56 -0700 Subject: [PATCH] changing package file --- spack/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spack/package.py b/spack/package.py index cede9213..0b78d919 100644 --- a/spack/package.py +++ b/spack/package.py @@ -92,7 +92,12 @@ def setup_run_environment(self, env): self.spec.variants["precision"].value if self.spec.satisfies("@3.4.6:") else ("4", "d") ) for suffix in precisions: - lib = find_libraries("libg2_" + suffix, root=self.prefix, shared=self.spec.satisfies("+shared"), recursive=True) + lib = find_libraries( + "libg2_" + suffix, + root=self.prefix, + shared=self.spec.satisfies("+shared"), + recursive=True, + ) env.set("G2_LIB" + suffix, lib[0]) env.set("G2_INC" + suffix, join_path(self.prefix, "include_" + suffix))