py-pythran: customize headers attribute (#33242)

This commit is contained in:
Massimiliano Culpo 2022-10-12 21:09:52 +02:00 committed by GitHub
parent 4765309b97
commit 48da17d18e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))