diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-06-16 18:25:56 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-07-20 08:10:41 +0200 |
commit | 2742e3d3322d3f809828dff5bcae3d3fe52c03ff (patch) | |
tree | e2418704dfcf2af1aa8b6c4f3e346d0393875024 /var | |
parent | 54f1ba9c3bd1286156fb761feb1f3bf7ec662b20 (diff) | |
download | spack-2742e3d3322d3f809828dff5bcae3d3fe52c03ff.tar.gz spack-2742e3d3322d3f809828dff5bcae3d3fe52c03ff.tar.bz2 spack-2742e3d3322d3f809828dff5bcae3d3fe52c03ff.tar.xz spack-2742e3d3322d3f809828dff5bcae3d3fe52c03ff.zip |
concretize.lp: impose a lower bound on the number of version facts if a solution exists (#31142)
* concretize.lp: impose a lower bound on the number of version facts if a valid version exists
fixes #30864
* Add a unit test
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py b/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py new file mode 100644 index 0000000000..2b964948c0 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py @@ -0,0 +1,16 @@ +# Copyright 2013-2022 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.package import * + + +class NonExistingConditionalDep(Package): + """Simple package with no source and one dependency""" + + homepage = "http://www.example.com" + + version('2.0') + version('1.0') + + depends_on('dep-with-variants@999', when='@2.0') |