diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-pythran/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
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)) |