-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
25 lines (21 loc) · 987 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
import eigency
import numpy
kwargs_ext = { 'include_dirs' : eigency.get_includes() + [numpy.get_include(), 'sdesolver/loop/', '/usr/include/eigen3'],
#'library_dirs' : ["lib/"],
#'libraries' : ["batch"], # dynamic linking at link time
#'extra_objects' : ["lib/libbatch.a"], #static linking
'extra_compile_args' : ["-std=c++11", "-O3", "-g"]#['-fsanitize=address', '-fno-omit-frame-pointer']
}
extensions = [
Extension("sdesolver.loop.pyloop", ["sdesolver/loop/pyloop.pyx"], **kwargs_ext),
Extension("sdesolver.util.cprint", ["sdesolver/util/cprint.pyx"], **kwargs_ext)
]
dist = setup(
name = "sdesolver",
version = "1.0",
ext_modules = cythonize(extensions, build_dir="build/", annotate=True, language_level=3, gdb_debug=True),
packages = ["sdesolver"]
)