From 9a732e4d65049da6ea542555ecc35219c5c19cc2 Mon Sep 17 00:00:00 2001 From: dave <dave@dtu.dk> Date: Wed, 3 Feb 2016 10:23:19 +0100 Subject: [PATCH] add numpy include dir when building Cython extensions --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index aa01647..cc8afc6 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ import os import sys from setuptools import setup +import numpy as np from distutils.extension import Extension from Cython.Distutils import build_ext @@ -22,6 +23,7 @@ def setup_package(): module = 'wetb.fatigue_tools.rainflowcounting' names = ['pair_range', 'peak_trough', 'rainflowcount_astm'] extlist = [Extension('%s.%s' % (module, n), + include_dirs=[np.get_include()], [os.path.join(path, n)+'.pyx']) for n in names] needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) -- GitLab