Don't include build-only dependencies in build cache hash (#6262)
This commit is contained in:
parent
6fd92e4257
commit
1008975bc0
@ -1272,12 +1272,14 @@ def _update_explicit_entry_in_db(self, rec, explicit):
|
||||
def try_install_from_binary_cache(self, explicit):
|
||||
tty.msg('Searching for binary cache of %s' % self.name)
|
||||
specs = binary_distribution.get_specs()
|
||||
if self.spec not in specs:
|
||||
binary_spec = spack.spec.Spec.from_dict(self.spec.to_dict())
|
||||
binary_spec._mark_concrete()
|
||||
if binary_spec not in specs:
|
||||
return False
|
||||
tty.msg('Installing %s from binary cache' % self.name)
|
||||
tarball = binary_distribution.download_tarball(self.spec)
|
||||
tarball = binary_distribution.download_tarball(binary_spec)
|
||||
binary_distribution.extract_tarball(
|
||||
self.spec, tarball, yes_to_all=False, force=False)
|
||||
binary_spec, tarball, yes_to_all=False, force=False)
|
||||
spack.store.db.add(self.spec, spack.store.layout, explicit=explicit)
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user