diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -4,22 +4,24 @@ from Cython.Build import cythonize import numpy all_extensions = Extension("*", ["pyisda/*.pyx"], - include_dirs = ['c_layer', numpy.get_include()], - libraries = ["cds", "farmhash"], - language = 'c++') + include_dirs=['c_layer', numpy.get_include()], + libraries=["cds", "farmhash"], + language='c++', + extra_compile_args=['-fopenmp'], + extra_link_args=['-fopenmp', '-Wl,--strip-all']) 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++') + 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}) +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']) + name="pyisda", + version='0.1', + author='Guillaume Horel', + ext_modules=all_extensions, + packages=['pyisda']) |
