-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (66 loc) · 2.2 KB
/
setup.py
File metadata and controls
68 lines (66 loc) · 2.2 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from glob import glob
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
ext_modules = [
Pybind11Extension(
'oRatioSolverNative',
sources=['src/py_core_listener.cpp',
'src/py_solver_listener.cpp',
'src/py_solver.cpp'],
include_dirs=['include',
'/usr/local/include/utils',
'/usr/local/include/json',
'/usr/local/include/SeMiTONE',
'/usr/local/include/RiDDLe',
'/usr/local/include/oRatioSolver'],
libraries=['utils',
'json',
'SeMiTONE',
'RiDDLe',
'oRatioSolver'],
library_dirs=['/usr/local/lib'],
define_macros=[
('INTEGER_TYPE_LONG', '1'),
('BUILD_LISTENERS', '1'),
('COMPUTE_NAMES', '1'),
('LA_TN', '1'),
('H_MAX', '1'),
('DEFERRABLE_FLAWS', '1'),
('GRAPH_PRUNING', '1')
]
),
Pybind11Extension(
'oRatioExecutorNative',
sources=['src/py_executor_listener.cpp',
'src/py_executor.cpp'],
include_dirs=['include',
'/usr/local/include/utils',
'/usr/local/include/json',
'/usr/local/include/SeMiTONE',
'/usr/local/include/RiDDLe',
'/usr/local/include/oRatioSolver',
'/usr/local/include/PlExA'],
libraries=['utils',
'json',
'SeMiTONE',
'RiDDLe',
'oRatioSolver',
'PlExA'],
library_dirs=['/usr/local/lib'],
define_macros=[
('INTEGER_TYPE_LONG', '1'),
('BUILD_LISTENERS', '1'),
('COMPUTE_NAMES', '1'),
('LA_TN', '1'),
('H_MAX', '1'),
('DEFERRABLE_FLAWS', '1'),
('GRAPH_PRUNING', '1')
]
)
]
setup(
ext_modules=ext_modules,
packages=['oRatio', 'oRatio.timelines'],
package_dir={'oRatio': 'src/oRatio',
'oRatio.timelines': 'src/oRatio/timelines'}
)