summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2018-02-21 11:36:11 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2018-03-20 00:29:54 -0700
commitdb81d19ddd38914d8149d1a6d8b6bcd459b20c87 (patch)
tree8e0318edf9017eedb20c7765fd2eff28c6b5dbf9 /lib
parent39cb9d039713e91b0d4a89f61b0d432ba313329f (diff)
downloadspack-db81d19ddd38914d8149d1a6d8b6bcd459b20c87.tar.gz
spack-db81d19ddd38914d8149d1a6d8b6bcd459b20c87.tar.bz2
spack-db81d19ddd38914d8149d1a6d8b6bcd459b20c87.tar.xz
spack-db81d19ddd38914d8149d1a6d8b6bcd459b20c87.zip
PackageBase: add a list of metadata attributes
These attributes are ignored when doing a content hash of a package.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py4
1 files changed, 4 insertions, 0 deletions
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 PackageBase(with_metaclass(PackageMeta, object)):
#: 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