diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/templates/misc/coconcretization.pyt | 15 | ||||
-rw-r--r-- | share/spack/templates/mock-repository/package.pyt | 19 |
2 files changed, 19 insertions, 15 deletions
diff --git a/share/spack/templates/misc/coconcretization.pyt b/share/spack/templates/misc/coconcretization.pyt deleted file mode 100644 index cd313216d9..0000000000 --- a/share/spack/templates/misc/coconcretization.pyt +++ /dev/null @@ -1,15 +0,0 @@ -# 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) - - -class Concretizationroot(Package): - url = 'fake_url' - - version('1.0') - -{% for dep in specs %} - depends_on('{{ dep }}') -{% endfor %} - diff --git a/share/spack/templates/mock-repository/package.pyt b/share/spack/templates/mock-repository/package.pyt new file mode 100644 index 0000000000..82bd50bd05 --- /dev/null +++ b/share/spack/templates/mock-repository/package.pyt @@ -0,0 +1,19 @@ +class {{ cls_name }}(Package): + homepage = "http://www.example.com" + url = "http://www.example.com/root-1.0.tar.gz" + + version("3.0", sha256='abcde') + version("2.0", sha256='abcde') + version("1.0", sha256='abcde') + +{% for dep_spec, dep_type, condition in dependencies %} +{% if dep_type and condition %} + depends_on("{{ dep_spec }}", type="{{ dep_type }}", when="{{ condition }}") +{% elif dep_type %} + depends_on("{{ dep_spec }}", type="{{ dep_type }}") +{% elif condition %} + depends_on("{{ dep_spec }}", when="{{ condition }}") +{% else %} + depends_on("{{ dep_spec }}") +{% endif %} +{% endfor %}
\ No newline at end of file |