From 98de8e325708da62c0d17b4607e62c9c7b7ab9e2 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 23 Feb 2024 06:37:22 +0100 Subject: [PATCH] Fix wrong call to a function (#42814) --- lib/spack/spack/build_systems/python.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py index ec86c45633..e4f5b7619d 100644 --- a/lib/spack/spack/build_systems/python.py +++ b/lib/spack/spack/build_systems/python.py @@ -376,8 +376,7 @@ def headers(self) -> HeaderList: platlib = self.prefix.join(self.spec["python"].package.platlib).join(name) purelib = self.prefix.join(self.spec["python"].package.purelib).join(name) - find_all_headers = functools.partial(fs.find_all_headers, recursive=True) - headers_list = map(find_all_headers, [include, platlib, purelib]) + headers_list = map(fs.find_all_headers, [include, platlib, purelib]) headers = functools.reduce(operator.add, headers_list) if headers: