mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge pull request #740 from QingmingHe/fix-include-error
fix cython fatal error
This commit is contained in:
commit
d39d634a40
1 changed files with 3 additions and 1 deletions
4
setup.py
Normal file → Executable file
4
setup.py
Normal file → Executable 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue