Permalink
Browse files

Tell distutils to add numpy's include dir to the list of include paths.

  • Loading branch information...
1 parent ab07093 commit 5687de8f3687b92e4a1f812921a3630882c8a0f7 @codewarrior0 committed Dec 28, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 setup_nbt.py
View
@@ -4,9 +4,11 @@
from Cython.Distutils import build_ext
ext_modules = [Extension("_nbt", ["_nbt.pyx"])]
+import numpy
setup(
name = 'NBT library (Cython implementation)',
cmdclass = {'build_ext': build_ext},
- ext_modules = ext_modules
+ ext_modules = ext_modules,
+ include_dirs = numpy.get_include()
)

0 comments on commit 5687de8

Please sign in to comment.