From 48da17d18e965030139ba8b82fc5dfb21a6471b6 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 12 Oct 2022 21:09:52 +0200 Subject: py-pythran: customize headers attribute (#33242) --- var/spack/repos/builtin/packages/py-pythran/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-pythran/package.py b/var/spack/repos/builtin/packages/py-pythran/package.py index 8a05c43e06..eba40ccaf3 100644 --- a/var/spack/repos/builtin/packages/py-pythran/package.py +++ b/var/spack/repos/builtin/packages/py-pythran/package.py @@ -5,6 +5,8 @@ import sys +import llnl.util.filesystem as fs + from spack.package import * @@ -54,6 +56,13 @@ class PyPythran(PythonPackage): # https://github.com/serge-sans-paille/pythran/issues/1937 conflicts("%apple-clang@13:", when="@:0.10") + @property + def headers(self): + # Pythran is mainly meant to be used as a compiler, so return no headers to + # avoid issue https://github.com/spack/spack/issues/33237 This can be refined + # later to allow using pythran also as a library. + return fs.HeaderList([]) + def patch(self): # Compiler is used at run-time to determine name of OpenMP library to search for cfg_file = join_path("pythran", "pythran-{0}.cfg".format(sys.platform)) -- cgit v1.2.3-70-g09d2