From 1dfe8697b5659727600672899b58da8bcb0804eb Mon Sep 17 00:00:00 2001 From: Alessandro Pietro Bardelli Date: Mon, 24 Aug 2015 11:06:33 +0200 Subject: [PATCH] fix cythonize numpy path --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f9e063b..b8a3ac6 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,8 @@ +import numpy from setuptools import setup, find_packages from codecs import open # To use a consistent encoding from os import path +from distutils.extension import Extension from Cython.Build import cythonize here = path.abspath(path.dirname(__file__)) @@ -99,5 +101,5 @@ 'mdfconverter=mdfconverter.mdfconverter:main', ], }, - ext_modules=cythonize('mdfreader/dataRead.pyx') + ext_modules=cythonize(Extension('dataRead', ['mdfreader/dataRead.pyx'], include_dirs=[numpy.get_include()])) )