Skip to content

Commit

Permalink
changing package file
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Dec 21, 2024
1 parent 122e749 commit fc5a725
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,10 @@ 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))

def check(self):
with working_dir(self.build_directory):
with working_dir(self.builder.build_directory):
make("test")

0 comments on commit fc5a725

Please sign in to comment.