diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-12-06 10:29:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 10:29:05 +0100 |
commit | 3843f43e6983d9c513218a2c0e25c27e5be76994 (patch) | |
tree | b9c1e5d2c339928117df012553f9f934cd0284c2 /var | |
parent | fbb127c46a78493a6204adb74d752939758dbe37 (diff) | |
download | spack-3843f43e6983d9c513218a2c0e25c27e5be76994.tar.gz spack-3843f43e6983d9c513218a2c0e25c27e5be76994.tar.bz2 spack-3843f43e6983d9c513218a2c0e25c27e5be76994.tar.xz spack-3843f43e6983d9c513218a2c0e25c27e5be76994.zip |
concretizer: each external version is allowed by definition (#20247)
Registering external versions among the lists of allowed ones
generates the correct rules for `version_satisfies`
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/external-buildable-with-variant/package.py | 15 | ||||
-rw-r--r-- | var/spack/repos/builtin.mock/packages/externaltool/package.py | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/external-buildable-with-variant/package.py b/var/spack/repos/builtin.mock/packages/external-buildable-with-variant/package.py new file mode 100644 index 0000000000..58de53054a --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/external-buildable-with-variant/package.py @@ -0,0 +1,15 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class ExternalBuildableWithVariant(Package): + homepage = "http://somewhere.com" + url = "http://somewhere.com/module-1.0.tar.gz" + + version('1.0', '1234567890abcdef1234567890abcdef') + + variant('baz', default=False, description='nope') diff --git a/var/spack/repos/builtin.mock/packages/externaltool/package.py b/var/spack/repos/builtin.mock/packages/externaltool/package.py index 4677dfeda9..114ae2d4a9 100644 --- a/var/spack/repos/builtin.mock/packages/externaltool/package.py +++ b/var/spack/repos/builtin.mock/packages/externaltool/package.py @@ -12,5 +12,6 @@ class Externaltool(Package): version('1.0', '1234567890abcdef1234567890abcdef') version('0.9', '1234567890abcdef1234567890abcdef') + version('0.8.1', '1234567890abcdef1234567890abcdef') depends_on('externalprereq') |