summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2019-02-22 12:51:46 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2019-02-22 13:40:21 -0500
commit779be4083c48ef01b41f79754a1e21099e078bd4 (patch)
treefaeca4211e6d11f7f6205fd22e415d0593718eef /setup.py
parent28a13d3d95cf70f8bdd41ad6b930e038cd8de2c5 (diff)
downloadpyisda-779be4083c48ef01b41f79754a1e21099e078bd4.tar.gz
simplify build script
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/setup.py b/setup.py
index 1ccd0e6..587b990 100644
--- a/setup.py
+++ b/setup.py
@@ -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,