diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-09-06 03:44:42 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-09-05 15:44:42 -1000 |
commit | d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12 (patch) | |
tree | 9a43088f481c70279da60d807326eac7f6dbc9b8 /var | |
parent | feefdedadf224315d69ef2f6da1fafd6338bba5a (diff) | |
download | spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.tar.gz spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.tar.bz2 spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.tar.xz spack-d1a5857a03dc2e21f5514fa2bcfafe0ec0210f12.zip |
Added support for querying by tags (#4786)
* Added support to query packages by tags.
- The querying commands `spack list`, `spack find` and `spack info` have
been modified to support querying by tags. Tests have been added to
check that the feature is working correctly under what should be the
most frequent use cases.
* Refactored Repo class to make insertion of new file caches easier.
- Added the class FastPackageChecker. This class is a Mapping from
package names to stat info, that gets memoized for faster access.
- Extracted the creation of a ProviderIndex to its own factory function.
* Added a cache file for tags.
- Following what was done for providers, a TagIndex class has been added.
This class can serialize and deserialize objects from json. Repo and
RepoPath have a new method 'packages_with_tags', that uses the TagIndex
to compute a list of package names that have all the tags passed as
arguments.
On Ubuntu 14.04 the effect if the cache reduces the time for spack list
from ~3sec. to ~0.3sec. after the cache has been built.
* Fixed colorization of `spack info`
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/mpich/package.py | 2 | ||||
-rw-r--r-- | var/spack/repos/builtin.mock/packages/mpich2/package.py | 2 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/aspa/package.py | 7 |
3 files changed, 7 insertions, 4 deletions
diff --git a/var/spack/repos/builtin.mock/packages/mpich/package.py b/var/spack/repos/builtin.mock/packages/mpich/package.py index 28d7b57f2d..844cfb940c 100644 --- a/var/spack/repos/builtin.mock/packages/mpich/package.py +++ b/var/spack/repos/builtin.mock/packages/mpich/package.py @@ -31,6 +31,8 @@ class Mpich(Package): list_url = "http://www.mpich.org/static/downloads/" list_depth = 2 + tags = ['tag1', 'tag2'] + variant('debug', default=False, description="Compile MPICH with debug flags.") diff --git a/var/spack/repos/builtin.mock/packages/mpich2/package.py b/var/spack/repos/builtin.mock/packages/mpich2/package.py index bdb5f914c9..aabd5232d7 100644 --- a/var/spack/repos/builtin.mock/packages/mpich2/package.py +++ b/var/spack/repos/builtin.mock/packages/mpich2/package.py @@ -31,6 +31,8 @@ class Mpich2(Package): list_url = "http://www.mpich.org/static/downloads/" list_depth = 2 + tags = ['tag1', 'tag3'] + version('1.5', '9c5d5d4fe1e17dd12153f40bc5b6dbc0') version('1.4', 'foobarbaz') version('1.3', 'foobarbaz') diff --git a/var/spack/repos/builtin/packages/aspa/package.py b/var/spack/repos/builtin/packages/aspa/package.py index 863c8a2980..3b0e0e4c26 100644 --- a/var/spack/repos/builtin/packages/aspa/package.py +++ b/var/spack/repos/builtin/packages/aspa/package.py @@ -28,10 +28,9 @@ import glob class Aspa(MakefilePackage): """A fundamental premise in ExMatEx is that scale-bridging performed in - heterogeneous MPMD materials science simulations will place important - demands upon the exascale ecosystem that need to be identified and - quantified. - tags = proxy-app + heterogeneous MPMD materials science simulations will place important + demands upon the exascale ecosystem that need to be identified and + quantified. """ tags = ['proxy-app'] homepage = "http://www.exmatex.org/aspa.html" |