py-numpy: add headers attribute#32835
Conversation
rgommers
left a comment
There was a problem hiding this comment.
numpy doesn't have any Python dependencies, so there should be no need to look for any headers in platlib. We should only need Python.h I think. Does this actually fix something that is not working right now? The linked comment seems to be about py-torch. I thought the other problem was in locating the numpy headers themselves. In that case, shouldn't this patch like in the package that needs those numpy headers?
|
The Btw, |
|
Ah okay, that is helpful context info. In that case, recursively searching |
|
@spackbot run pipeline |
|
I've started that pipeline for you! |
Looks like petsc4py is querying numpy directly to get this info >>> import numpy
>>> numpy.get_include()
'/usr/lib64/python3.10/site-packages/numpy/core/include'So assuming petsc4py will be unaffected by this change.. |
|
I'm seeing this pattern used in the spack/var/spack/repos/builtin/packages/precice/package.py Lines 153 to 169 in 977c89c Outside of |
|
@adamjstewart: I don't fully understand what function that However, I was regardless able to make |
That's the point of using
It's supposed to access |
|
Yep, that seems to work, nice find! I'll open a separate PR for this. |
Copy-n-pasted this from the
PythonPackagebase class. For some reason, it doesn't work if it's in the base class, see #28527 (comment)