blob: 6dc7dc2c90e5b600f4b005e6491ed996539f5611 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 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 ChainA(Package):
"""
Part of a collection of mock packages used for testing depth-first vs
breadth-first traversal. The DAG they form:
a --> b --> c --> d # a chain
a --> c # "skip" connection
a --> d # "skip" connection
Spack's edge order is based on the child package name.
In depth-first traversal we get a tree that looks like a chain:
a
b
c
d
In breadth-first we get the tree:
a
b
c
d
"""
homepage = "https://example.com"
has_code = False
version("1.0")
depends_on("chain-b")
depends_on("chain-c")
depends_on("chain-d")
|