From db81d19ddd38914d8149d1a6d8b6bcd459b20c87 Mon Sep 17 00:00:00 2001 From: Peter Scheibel Date: Wed, 21 Feb 2018 11:36:11 -0500 Subject: [PATCH] PackageBase: add a list of metadata attributes These attributes are ignored when doing a content hash of a package. --- lib/spack/spack/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index e2877ac72a..0b49cf5db3 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -563,6 +563,10 @@ class SomePackage(Package): #: Do not include @ here in order not to unnecessarily ping the users. maintainers = [] + #: List of attributes which affect do not affect a package's content. + metadata_attrs = ['homepage', 'url', 'list_url', 'extendable', 'parallel', + 'make_jobs'] + def __init__(self, spec): # this determines how the package should be built. self.spec = spec