blob: 5f3a4c2252f7115a99a18fb0c96dbdc01042dc68 (
plain) (
tree)
|
|
# 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 NosourceInstall(BundlePackage):
"""Simple bundle package with one dependency and metadata 'install'."""
homepage = "http://www.example.com"
version("2.0")
version("1.0")
depends_on("dependency-install")
# The install method must also be present.
def install(self, spec, prefix):
touch(join_path(self.prefix, "install.txt"))
@run_after("install")
def post_install(self):
touch(join_path(self.prefix, "post-install.txt"))
|