summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-10-12 21:09:52 +0200
committerGitHub <noreply@github.com>2022-10-12 13:09:52 -0600
commit48da17d18e965030139ba8b82fc5dfb21a6471b6 (patch)
tree636c9fd81d47463cb61c3660ca2f4a28dc8e56f3 /var
parent4765309b975d6b05e9a55d6d71f031c93e2ec76d (diff)
downloadspack-48da17d18e965030139ba8b82fc5dfb21a6471b6.tar.gz
spack-48da17d18e965030139ba8b82fc5dfb21a6471b6.tar.bz2
spack-48da17d18e965030139ba8b82fc5dfb21a6471b6.tar.xz
spack-48da17d18e965030139ba8b82fc5dfb21a6471b6.zip
py-pythran: customize headers attribute (#33242)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pythran/package.py9
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))