From e1962bd479dad3330cf261b2273d8a6ae123d6ee Mon Sep 17 00:00:00 2001 From: Qingming He <906459647@qq.com> Date: Fri, 14 Oct 2016 22:52:06 -0400 Subject: [PATCH] add numpy include dirs --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 setup.py diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index 52ffaecf49..da98506d3b --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import glob +import numpy as np try: from setuptools import setup have_setuptools = True @@ -57,7 +58,8 @@ if have_setuptools: # If Cython is present, add resonance reconstruction capability if have_cython: kwargs.update({ - 'ext_modules': cythonize('openmc/data/reconstruct.pyx') + 'ext_modules': cythonize('openmc/data/reconstruct.pyx'), + 'include_dirs': [np.get_include()] }) setup(**kwargs)