py-pythran: customize headers attribute (#33242)
This commit is contained in:
parent
4765309b97
commit
48da17d18e
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import llnl.util.filesystem as fs
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
@ -54,6 +56,13 @@ class PyPythran(PythonPackage):
|
|||||||
# https://github.com/serge-sans-paille/pythran/issues/1937
|
# https://github.com/serge-sans-paille/pythran/issues/1937
|
||||||
conflicts("%apple-clang@13:", when="@:0.10")
|
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):
|
def patch(self):
|
||||||
# Compiler is used at run-time to determine name of OpenMP library to search for
|
# 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))
|
cfg_file = join_path("pythran", "pythran-{0}.cfg".format(sys.platform))
|
||||||
|
Loading…
Reference in New Issue
Block a user