Skip to content
Snippets Groups Projects
Unverified Commit 5e1cb24b authored by Sebastian Gottfried's avatar Sebastian Gottfried Committed by GitHub
Browse files

py-mpi4py: Implement headers Property (#17295)

py-mpi4py installs its header files at a difficult-to-predict location:

    $prefix/lib/python-x.y/site-packages/mpi4py/include

With the new `headers` properties, dependent packages have now an easy
way to obtain this location:

    spec['py-mpi4py'].headers.directories[0]
parent 2de0053c
Branches
Tags
No related merge requests found
...@@ -30,3 +30,8 @@ class PyMpi4py(PythonPackage): ...@@ -30,3 +30,8 @@ class PyMpi4py(PythonPackage):
def build_args(self, spec, prefix): def build_args(self, spec, prefix):
return ['--mpicc=%s -shared' % spec['mpi'].mpicc] return ['--mpicc=%s -shared' % spec['mpi'].mpicc]
@property
def headers(self):
headers = find_all_headers(self.prefix.lib)
return headers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment