From 4f9131fdc2ff2d9e6c62da15f82ce7384e70895b Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Fri, 19 Jul 2019 20:08:05 -0500 Subject: 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. --- .../repos/builtin.mock/packages/patch-inheritance/package.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 var/spack/repos/builtin.mock/packages/patch-inheritance/package.py (limited to 'var') diff --git a/var/spack/repos/builtin.mock/packages/patch-inheritance/package.py b/var/spack/repos/builtin.mock/packages/patch-inheritance/package.py new file mode 100644 index 0000000000..6569af8a32 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/patch-inheritance/package.py @@ -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) -- cgit v1.2.3-70-g09d2