diff options
author | Richarda Butler <39577672+RikkiButler20@users.noreply.github.com> | 2023-11-07 12:04:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 21:04:41 +0100 |
commit | 5774df6b7a295a397e30a843f5ef14b339535b64 (patch) | |
tree | 31b116612d7899565e591606b5dd1364c198f7d4 /var/spack/repos/builtin.mock/packages/ascent | |
parent | 3a5c1eb5f370cc532629f70b28067a6711aa24e3 (diff) | |
download | spack-5774df6b7a295a397e30a843f5ef14b339535b64.tar.gz spack-5774df6b7a295a397e30a843f5ef14b339535b64.tar.bz2 spack-5774df6b7a295a397e30a843f5ef14b339535b64.tar.xz spack-5774df6b7a295a397e30a843f5ef14b339535b64.zip |
Propagate variant across nodes that don't have that variant (#38512)
Before this PR, variant were not propagated to leaf nodes that could accept
the propagated value, if some intermediate node couldn't accept it.
This PR fixes that issue by marking nodes as "candidate" for propagation
and by setting the variant only if it can be accepted by the node.
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/ascent')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/ascent/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/ascent/package.py b/var/spack/repos/builtin.mock/packages/ascent/package.py new file mode 100644 index 0000000000..9a8db472dc --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/ascent/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2023 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 Ascent(Package): + """This packagae has the variants shared, defaulted + to True and adios2 defaulted to False""" + + homepage = "https://github.com/Alpine-DAV/ascent" + url = "http://www.example.com/ascent-1.0.tar.gz" + + version("0.9.2", sha256="44cd954aa5db478ab40042cd54fd6fcedf25000c3bb510ca23fcff8090531b91") + + variant("adios2", default=False, description="Build Adios2 filter support") + variant("shared", default=True, description="Build Ascent as shared libs") + + depends_on("adios2", when="+adios2") |