1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy
all_extensions = Extension("*", ["pyisda/*.pyx"],
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'],
language = 'c++')
all_extensions = cythonize([c_extension, all_extensions], nthreads = 4,
compiler_directives={'embedsignature':True})
setup(
name = "pyisda",
version = '0.1',
author = 'Guillaume Horel',
ext_modules = all_extensions,
packages = ['pyisda'])
|