Package inheritance: Find patch files defined in parent classes using MRO (#12051)

Fixes #8908, 11844

Use Python MRO to find patch files from parent classes.
This commit is contained in:
Greg Becker
2019-07-19 20:08:05 -05:00
committed by Tamara Dahlgren
parent 4b6de78062
commit 4f9131fdc2
4 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
# Copyright 2013-2019 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.pkg.builtin.mock.patch import Patch
class PatchInheritance(Patch):
def install(self, spec, prefix):
Patch.install(self, spec, prefix)