Last change
on this file since 979 was
977,
checked in by dubos, 5 years ago
|
devel/Python : now only dynamico.dev modules require link to DYNAMICO/XIOS shared objects
|
File size:
676 bytes
|
Line | |
---|
1 | from distutils.core import setup |
---|
2 | from distutils.extension import Extension |
---|
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 | |
---|
14 | setup( name = "DYNAMICO kernels for unstructured mesh", |
---|
15 | ext_modules = cythonize([ |
---|
16 | Extension("cxios",["cxios.pyx"],libraries=["xios"]), |
---|
17 | Extension("unstructured",["unstructured.pyx"],libraries=["icosa","xios"], extra_compile_args=extra_flags) |
---|
18 | ], compile_time_env={'CPP_MIXED_PREC': mixed_prec} ) |
---|
19 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.