summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-12-04 16:27:03 +0100
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:22 -0800
commita6d433b937ee7d418289b23585a6d53343f1f14e (patch)
treec2f07e7c293eb13839f3de61cc9d1a81afb181c5 /var
parentb4f79f3cb7e9cd0482784e5f7a33fbf8e1a3c1ae (diff)
downloadspack-a6d433b937ee7d418289b23585a6d53343f1f14e.tar.gz
spack-a6d433b937ee7d418289b23585a6d53343f1f14e.tar.bz2
spack-a6d433b937ee7d418289b23585a6d53343f1f14e.tar.xz
spack-a6d433b937ee7d418289b23585a6d53343f1f14e.zip
concretizer: restrict maximizing variant values to MV variants (#20194)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop-root/package.py11
-rw-r--r--var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py12
2 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop-root/package.py b/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop-root/package.py
new file mode 100644
index 0000000000..00162ee200
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop-root/package.py
@@ -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')
diff --git a/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py b/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py
new file mode 100644
index 0000000000..ecb11224b3
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py
@@ -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')