summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2017-02-22 16:38:02 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2017-02-22 16:38:02 -0500
commit8baef999da28d8a51734994219514e20fe92a2d2 (patch)
treec3a1be6900fbc1036a2a887d43f10e4279a0591a /setup.py
parentc373a9512d9cecd9d94497f0637d763ce7cfe9e5 (diff)
downloadpyisda-8baef999da28d8a51734994219514e20fe92a2d2.tar.gz
switch to C++cpp
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index dd76e0d..da9a315 100644
--- a/setup.py
+++ b/setup.py
@@ -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})