concretizer: restrict maximizing variant values to MV variants (#20194)

This commit is contained in:
Massimiliano Culpo
2020-12-04 16:27:03 +01:00
committed by Tamara Dahlgren
parent b4f79f3cb7
commit a6d433b937
4 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
# 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)
class DepWithVariantsIfDevelopRoot(Package):
"""Package that adds a dependency with many variants only at @develop"""
homepage = "https://dev.null"
version('1.0')
depends_on('dep-with-variants-if-develop')

View File

@@ -0,0 +1,12 @@
# 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)
class DepWithVariantsIfDevelop(Package):
"""Package that adds a dependency with many variants only at @develop"""
homepage = "https://dev.null"
version('develop')
version('1.0')
depends_on('dep-with-variants', when='@develop')