setup.py: get numpy includes
authorPaul Brossier <piem@piem.org>
Sat, 9 Feb 2013 22:38:58 +0000 (17:38 -0500)
committerPaul Brossier <piem@piem.org>
Sat, 9 Feb 2013 22:40:03 +0000 (17:40 -0500)
interfaces/python/setup.py

index c87b33961c823e6aba2b6eb7e98ebc4bb76ca5db..ef05441d25b73d5af2a5eca0215a2e522f0a0a71 100755 (executable)
@@ -1,10 +1,9 @@
 #! /usr/bin/python
 
 from distutils.core import setup, Extension
-
 from generator import generate_object_files
-
 import os.path
+import numpy
 
 library_dirs = ['../../build/src', '../../src/.libs']
 include_dirs = ['../../build/src', '../../src', '.' ]
@@ -23,7 +22,7 @@ aubio_extension = Extension("_aubio",
             "py-phasevoc.c",
             # generated files
             ] + generate_object_files(),
-            include_dirs = include_dirs,
+            include_dirs = include_dirs + [ numpy.get_include() ],
             library_dirs = library_dirs,
             libraries=['aubio'])