diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2017-11-13 00:22:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 00:22:59 -0700 |
commit | fffcd7766285133b88433706ed32bb9b1dee781c (patch) | |
tree | 4784c4f8cdd93ef114bb5ad83691fd4a297b16f9 | |
parent | 9b80f2fd38b72fe42f08b5fd6c2d4d0fbc307ba6 (diff) | |
download | spack-fffcd7766285133b88433706ed32bb9b1dee781c.tar.gz spack-fffcd7766285133b88433706ed32bb9b1dee781c.tar.bz2 spack-fffcd7766285133b88433706ed32bb9b1dee781c.tar.xz spack-fffcd7766285133b88433706ed32bb9b1dee781c.zip |
Allow types and 'any' in variant definitions. (#4524)
- Previously variant values had to be a tuple or a callable predicate.
- This allows 'any' as shorthand for `lambda x: True` and type objects
as shorthand for "any value of this type".
- Makes variant definitions more readable, keeps lambdas out of
packages for common cases.
0 files changed, 0 insertions, 0 deletions