Skip to content

Commit 540f924

Browse files
committed
wrappers/python: Use explicit include path
Ask numpy for the correct include path for its headers, instead of just assuming they are available in the default include path. Signed-off-by: Hector Martin <[email protected]>
1 parent e02a2ec commit 540f924

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wrappers/python/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from distutils.core import setup
33
from distutils.extension import Extension
44
import re
5+
import numpy as np
56

67

78
def get_cython_version():
@@ -43,7 +44,8 @@ def get_cython_version():
4344
'-I', '/usr/include/libusb-1.0/',
4445
'-I', '/usr/local/include/libusb-1.0',
4546
'-I', '/usr/local/include',
46-
'-I', '../c_sync/'])]
47+
'-I', '../c_sync/',
48+
'-I', np.get_include()])]
4749
setup(name='freenect',
4850
cmdclass=cmdclass,
4951
ext_modules=ext_modules)

0 commit comments

Comments
 (0)