deepinsight / deepinsight/insightface
numpy headers discoverability issue
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
There is a issue with setup.py which leads to in mesh_core_cython.cpp not being able to find the paths of the numpy header files.
I was able to fix it simply by adding numpy.get_include() to the Extension list in setup.py
`
# Get the correct path to numpy headers
numpy_include = numpy.get_include()
extensions = [
Extension(
"insightface.thirdparty.face3d.mesh.cython.mesh_core_cython",
["insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx",
"insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp"],
language='c++',
include_dirs=[numpy_include], # Add NumPy include path
),
]
`
I can raise a PR if this issue needs to be resolved.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.