Skip to content

Commit

Permalink
get installed specs with spack query
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Nov 20, 2021
1 parent c6dea94 commit ee06808
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions splice.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,14 @@ def run_libabigail(splices):
"""
Run libabigail to add to the predictions
"""
abi = spack.spec.Spec("libabigail")
abi.concretize()
abi.package.do_install(force=True)
installed_specs = spack.store.db.query("libabigail")
if not installed_specs:
abi = spack.spec.Spec("libabigail")
abi.concretize()
abi.package.do_install(force=True)
else:
abi = installed_specs[0]

add_to_path(os.path.join(abi.prefix, "bin"))
os.listdir(os.path.join(abi.prefix, "bin"))
abicompat = spack.util.executable.which("abicompat")
Expand Down

0 comments on commit ee06808

Please sign in to comment.