summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2018-10-11 16:14:20 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2018-10-11 16:14:59 -0400
commit7a4fa08217d9969addf54a71bf580b6850d0f2b4 (patch)
tree79837ebfc5a8e1d1690fe76d92da12f6c7a20038 /setup.py
parent873e029f1d353566e622a4ebe69c4937307640ca (diff)
downloadpyisda-7a4fa08217d9969addf54a71bf580b6850d0f2b4.tar.gz
apply black
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py41
1 files changed, 25 insertions, 16 deletions
diff --git a/setup.py b/setup.py
index ff8a420..d358901 100644
--- a/setup.py
+++ b/setup.py
@@ -3,25 +3,34 @@ from distutils.extension import Extension
from Cython.Build import cythonize
import numpy
-all_extensions = Extension("*", ["pyisda/*.pyx"],
- include_dirs=['c_layer', numpy.get_include()],
- libraries=["cds", "farmhash"],
- language='c++',
- extra_compile_args=['-fopenmp'],
- extra_link_args=['-fopenmp', '-Wl,--strip-all'])
+all_extensions = Extension(
+ "*",
+ ["pyisda/*.pyx"],
+ 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.optim",
- include_dirs=['c_layer', numpy.get_include()],
- sources=['pyisda/optim.pyx', 'c_layer/cdsbootstrap.c'],
- libraries=['cds'],
- language='c++')
+c_extension = Extension(
+ "pyisda.optim",
+ include_dirs=["c_layer", numpy.get_include()],
+ sources=["pyisda/optim.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',
+ version="0.1",
+ author="Guillaume Horel",
ext_modules=all_extensions,
- packages=['pyisda'])
+ packages=["pyisda"],
+)