-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (34 loc) · 1.07 KB
/
setup.py
File metadata and controls
37 lines (34 loc) · 1.07 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
from numpy import get_include
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import Extension, setup
# Original C API module - integrated into StatTools package
c_api_module = Extension(
"StatTools.native.C_StatTools",
include_dirs=[get_include()],
sources=["src/cpp/StatTools_C_API.cpp", "src/cpp/StatTools_core.cpp"],
language="c++",
extra_compile_args=["-std=c++14"],
)
# Modern pybind11 bindings - integrated into StatTools package
stattools_bindings = Pybind11Extension(
"StatTools.native.StatTools_bindings",
include_dirs=[get_include()],
sources=["src/cpp/StatTools_bindings.cpp", "src/cpp/StatTools_core.cpp"],
)
setup(
ext_modules=[
c_api_module,
stattools_bindings,
],
cmdclass={
"build_ext": build_ext,
},
packages=[
"StatTools",
"StatTools.analysis",
"StatTools.generators",
"StatTools.filters",
],
include_package_data=True,
description="A set of tools which allows to generate and process long-term dependent datasets",
)