diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-22 12:51:46 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-22 13:40:21 -0500 |
| commit | 779be4083c48ef01b41f79754a1e21099e078bd4 (patch) | |
| tree | faeca4211e6d11f7f6205fd22e415d0593718eef /setup.py | |
| parent | 28a13d3d95cf70f8bdd41ad6b930e038cd8de2c5 (diff) | |
| download | pyisda-779be4083c48ef01b41f79754a1e21099e078bd4.tar.gz | |
simplify build script
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -5,24 +5,15 @@ import numpy all_extensions = Extension( "*", - ["pyisda/*.pyx", "c_layer/curve.cpp"], + ["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++", -) - all_extensions = cythonize( - [c_extension, all_extensions], + [all_extensions], nthreads=4, compiler_directives={"embedsignature": True, "language_level": 3, |
