summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/dev-build-test-install-phases/package.py
blob: 223945e6b9b5de875b91af22f9b278576c375d58 (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
# Copyright 2013-2024 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 DevBuildTestInstallPhases(Package):
    homepage = "example.com"
    url = "fake.com"

    version("0.0.0", sha256="0123456789abcdef0123456789abcdef")

    phases = ["one", "two", "three", "install"]

    def one(self, spec, prefix):
        print("One locomoco")

    def two(self, spec, prefix):
        print("Two locomoco")

    def three(self, spec, prefix):
        print("Three locomoco")

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        print("install")