Browse Source

Include numpy headers

Pete Shadbolt 4 years ago
parent
commit
5824eb769e
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      setup.py

+ 4
- 2
setup.py View File

@@ -1,9 +1,10 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 from distutils.core import setup, Extension
4
+import numpy
4 5
 
5 6
 setup(name             = "permanent",
6
-      version          = "0.1.2",
7
+      version          = "0.1.3",
7 8
       description      = "Calculates the permanent of a Numpy matrix",
8 9
       author           = "Pete Shadbolt",
9 10
       author_email     = "pete.shadbolt@gmail.com",
@@ -13,7 +14,8 @@ setup(name             = "permanent",
13 14
       ext_modules      = [
14 15
           Extension(
15 16
               'permanent.permanent', ['./src/permanent.c'],
16
-              extra_compile_args=["-Ofast", "-march=native"]),
17
+              extra_compile_args=["-Ofast", "-march=native"],
18
+              include_dirs=[numpy.get_include()]),
17 19
       ], 
18 20
       
19 21
 )