From 1008975bc0490c6e9faddf31c625f0fe801c9cf5 Mon Sep 17 00:00:00 2001 From: becker33 Date: Sat, 11 Nov 2017 20:54:17 -0800 Subject: Don't include build-only dependencies in build cache hash (#6262) --- lib/spack/spack/package.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 67745a837c..728a1a4f6f 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1272,12 +1272,14 @@ class PackageBase(with_metaclass(PackageMeta, object)): 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 -- cgit v1.2.3-70-g09d2