From 5824eb769e81844e813b487bb7579616ddcd0c63 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 1 Dec 2014 12:00:24 +0000 Subject: [PATCH] Include numpy headers --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 01b8bf8..60c5546 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ #!/usr/bin/env python from distutils.core import setup, Extension +import numpy setup(name = "permanent", - version = "0.1.2", + version = "0.1.3", description = "Calculates the permanent of a Numpy matrix", author = "Pete Shadbolt", author_email = "pete.shadbolt@gmail.com", @@ -13,7 +14,8 @@ setup(name = "permanent", ext_modules = [ Extension( 'permanent.permanent', ['./src/permanent.c'], - extra_compile_args=["-Ofast", "-march=native"]), + extra_compile_args=["-Ofast", "-march=native"], + include_dirs=[numpy.get_include()]), ], )