Changeset 744 for codes/icosagcm/devel/Python
- Timestamp:
- 10/03/18 17:58:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/src/setup.py
r694 r744 2 2 from distutils.extension import Extension 3 3 from Cython.Build import cythonize 4 5 from ctypes import cdll, c_bool 6 libicosa = cdll.LoadLibrary('libicosa.so') 7 mixed_prec=c_bool.in_dll(libicosa, 'mixed_precision').value 8 9 if mixed_prec: 10 extra_flags=["-DCPP_MIXED_PREC"] 11 else: 12 extra_flags=None 13 4 14 setup( name = "DYNAMICO kernels for unstructured mesh", 5 15 ext_modules = cythonize([ 6 16 Extension("cxios",["cxios.pyx"],libraries=["xios"]), 7 Extension("unstructured",["unstructured.pyx"],libraries=["icosa","xios"] )8 ] )17 Extension("unstructured",["unstructured.pyx"],libraries=["icosa","xios"], extra_compile_args=extra_flags) 18 ], compile_time_env={'CPP_MIXED_PREC': mixed_prec} ) 9 19 )
Note: See TracChangeset
for help on using the changeset viewer.