diff options
| author | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-11-10 14:21:34 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-11-10 14:21:34 -0500 |
| commit | 8134b12f3d051e468a20df1a8e90408dedc3d112 (patch) | |
| tree | 914139595dd6c822023fb23da42ce1df6f34a0df /setup.py | |
| parent | f39919c51ec7e4dab767156db0ed1fd457787672 (diff) | |
| download | pyisda-8134b12f3d051e468a20df1a8e90408dedc3d112.tar.gz | |
add fater version
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -2,12 +2,20 @@ from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize -extensions = Extension("*", ["pyisda/*.pyx"], - libraries = ["cds"]) +all_extensions = Extension("*", ["pyisda/*.pyx"], + include_dirs = ['c_layer'], + libraries = ["cds"]) + +c_extension = Extension("pyisda.flat_hazard", + include_dirs = ['c_layer'], + sources = ['pyisda/flat_hazard.pyx', 'c_layer/cdsbootstrap.c'], + libraries = ['cds']) +all_extensions = cythonize([c_extension, all_extensions], nthreads = 4, + compiler_directives={'embedsignature':True}) + setup( name = "pyisda", version = '0.1', author = 'Guillaume Horel', - ext_modules = cythonize(extensions, nthreads = 4, - compiler_directives={'embedsignature':True}), + ext_modules = all_extensions, packages = ['pyisda']) |
