Merge pull request #740 from QingmingHe/fix-include-error

fix cython fatal error
This commit is contained in:
Paul Romano 2016-10-16 15:34:18 -05:00 committed by GitHub
commit d39d634a40

4
setup.py Normal file → Executable file
View file

@ -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)