From 5afaa54ad9f99c271f59b7ca9e03ad76402d69ad Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Tue, 17 Nov 2015 18:46:01 -0800 Subject: [PATCH] Remove compiling of C ext with numpy exts. This should be done at run time. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 04427658..531dc539 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ cython_files = [ "SimPEG/Utils/interputils_cython", "SimPEG/Mesh/TreeUtils" ] -extensions = [Extension(f, [f+ext], include_dirs=[np.get_include()]) for f in cython_files] +extensions = [Extension(f, [f+ext]) for f in cython_files] if USE_CYTHON and "cleanall" not in args: from Cython.Build import cythonize @@ -93,6 +93,7 @@ setup( classifiers=CLASSIFIERS, platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3 = False, + include_dirs=[np.get_include()], ext_modules = extensions, **cythonKwargs )