forked from mass2010chromium/motion-c
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (33 loc) · 1.28 KB
/
setup.py
File metadata and controls
39 lines (33 loc) · 1.28 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
from distutils.core import setup, Extension
#all_macros = [('MOTION_DEBUG', None), ('PYTHON', None)]
all_macros = [('PYTHON', None)]
vo_macros = [] #[('VO_RESTRICT', None)]
so3_macros = [
('SO3_STRICT', None),
('SO3_RESTRICT', None),
]
rtde_macros = [
('RTDE_PROTOCOL_VERSION', 2)
]
ur = Extension('Motion.ur5controller',
sources = ['c/ur5controller.c'],
extra_compile_args = ["-O3"],
define_macros=all_macros)
vo = Extension('motionlib.vectorops',
sources = ['c/vectorops.c'],
extra_compile_args = ["-O3"],
define_macros = all_macros + vo_macros)
so3 = Extension('motionlib.so3',
sources = ['c/so3.c'],
extra_compile_args = ["-O3"],
define_macros = all_macros + so3_macros)
se3 = Extension('motionlib.se3',
sources = ['c/se3.c'],
extra_compile_args = ["-O3"],
define_macros = all_macros + vo_macros + so3_macros + [
('SE3_RESTRICT', None),
])
setup (name = 'Motion',
version = '1.0',
description = 'Motion code I guess',
ext_modules = [ur, vo, so3, se3])