deepinsight / deepinsight/insightface

numpy headers discoverability issue

Open
#2,715 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.