diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2017-02-22 16:38:02 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2017-02-22 16:38:02 -0500 |
| commit | 8baef999da28d8a51734994219514e20fe92a2d2 (patch) | |
| tree | c3a1be6900fbc1036a2a887d43f10e4279a0591a /setup.py | |
| parent | c373a9512d9cecd9d94497f0637d763ce7cfe9e5 (diff) | |
| download | pyisda-8baef999da28d8a51734994219514e20fe92a2d2.tar.gz | |
switch to C++cpp
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,13 +4,16 @@ from Cython.Build import cythonize import numpy all_extensions = Extension("*", ["pyisda/*.pyx"], - include_dirs = ['c_layer', numpy.get_include()], - libraries = ["cds"]) + include_dirs = ['cpp_layer', 'c_layer', numpy.get_include()], + libraries = ["cds"], + language = 'c++') c_extension = Extension("pyisda.flat_hazard", include_dirs = ['c_layer', numpy.get_include()], sources = ['pyisda/flat_hazard.pyx', 'c_layer/cdsbootstrap.c'], - libraries = ['cds']) + libraries = ['cds'], + language = 'c++') + all_extensions = cythonize([c_extension, all_extensions], nthreads = 4, compiler_directives={'embedsignature':True}) |
