forked from intelligent-agent/redeem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
104 lines (93 loc) · 2.92 KB
/
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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
from setuptools import setup, find_packages, Extension
import numpy as np
import os
from distutils.sysconfig import get_config_vars
# Remove the strict prototpyes warnings
(opt,) = get_config_vars('OPT')
os.environ['OPT'] = " ".join(
flag for flag in opt.split() if flag != '-Wstrict-prototypes'
)
import os
from distutils.sysconfig import get_config_vars
(opt,) = get_config_vars('OPT')
os.environ['OPT'] = " ".join(
flag for flag in opt.split() if flag != '-Wstrict-prototypes'
)
# Requirements for our application
# Note: WIP, not a complete list
INSTALL_REQUIRES = [
"spidev==3.2.0",
"scipy",
"numpy",
"python-smbus"
]
pathplanner = Extension(
'_PathPlannerNative', sources = [
'redeem/path_planner/PathPlannerNative.i',
'redeem/path_planner/PathPlanner.cpp',
'redeem/path_planner/PathPlannerSetup.cpp',
'redeem/path_planner/Preprocessor.cpp',
'redeem/path_planner/Path.cpp',
'redeem/path_planner/Delta.cpp',
'redeem/path_planner/vector3.cpp',
'redeem/path_planner/PruTimer.cpp',
'redeem/path_planner/prussdrv.c',
'redeem/path_planner/Logger.cpp'],
swig_opts=['-c++','-builtin'],
include_dirs = [np.get_include()],
extra_compile_args = [
'-std=c++0x',
'-g',
'-Ofast',
'-fpermissive',
'-D_GLIBCXX_USE_NANOSLEEP',
'-DBUILD_PYTHON_EXT=1',
'-Wno-write-strings',
'-Wno-maybe-uninitialized']
)
setup(
name = "Redeem",
version = "1.2.8",
packages = find_packages(exclude=["redeem/path_planner"]),
data_files=[
('redeem/firmware', [
'redeem/firmware/firmware_runtime.p',
'redeem/firmware/firmware_endstops.p']),
('redeem/configs', [
'configs/default.cfg',
'configs/thing.cfg',
'configs/makerbot_cupcake.cfg',
'configs/maxcorexy.cfg',
'configs/mendelmax.cfg',
'configs/testing_rev_A.cfg',
'configs/testing_rev_B.cfg',
'configs/prusa_i3.cfg',
'configs/debrew.cfg',
'configs/kossel_mini.cfg',
'configs/rostock_max_v2.cfg']),
('redeem/data',[
'data/B57540G0104F000.cht',
'data/B57560G104F.cht',
'data/B57561G0103F000.cht',
'data/QU-BD.cht',
'data/HT100K3950.cht',
'data/SEMITEC-104GT-2.cht',
'data/DYZE500.cht',
'data/E3D-PT100-AMPLIFIER.cht']),
],
# metadata for upload to PyPI
author = "Elias Bakken",
author_email = "[email protected]",
description = "Replicape daemon",
license = "GPLv3",
keywords = "3d printer firmware",
platforms = ["BeagleBone"],
url = "https://bitbucket.org/intelligentagent/redeem",
ext_modules = [pathplanner],
entry_points = {
'console_scripts': [
'redeem = redeem.Redeem:main'
]
},
include_package_data = True
)