This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
setup.py
executable file
·115 lines (110 loc) · 3.31 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
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env python
import numpy as np
import os
import pip
from distutils.sysconfig import get_config_vars
from setuptools import setup, find_packages, Extension
# Remove the strict prototpyes warnings
(opt, ) = get_config_vars('OPT')
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-prototypes')
# yapf: disable
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/vectorN.cpp',
'redeem/path_planner/PruTimer.cpp',
'redeem/path_planner/prussdrv.c',
'redeem/path_planner/Logger.cpp',
'redeem/path_planner/PathOptimizer.cpp',
'redeem/path_planner/PathQueue.cpp'],
swig_opts=['-c++', '-builtin', '-threads'],
include_dirs=[np.get_include()],
extra_compile_args=[
'-std=c++17',
'-g',
'-O3',
'-flto',
'-DBUILD_PYTHON_EXT=1',
'-Wall',
'-DLOGLEVEL=20',
'-UNDEBUG',
])
from redeem.__init__ import __url__
import versioneer
setup(
name="Redeem",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages = find_packages(exclude=["redeem/path_planner"]),
data_files=[
('redeem/firmware', [
'redeem/firmware/firmware_runtime.c',
'redeem/firmware/firmware_endstops.c',
'redeem/firmware/AM335x_PRU.cmd',
'redeem/firmware/image.cmd']),
('redeem/configs', [
'configs/default.cfg',
'configs/thing.cfg',
'configs/Anet_A8.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"],
install_requires=[
'docutils==0.14',
'funcsigs==1.0.2',
'adafruit_gpio',
'Adafruit_BBIO',
'mock==2.0.0',
'pbr==4.2.0',
'py',
'pyusb==1.0.2',
'six>=1.11.0',
'sh',
'sympy',
'testfixtures==6.2.0',
'configobj==5.0.6',
'scipy',
'pytest==4.0.2',
'future>=0.16.0',
'evdev',
],
url=__url__,
ext_modules=[pathplanner],
entry_points= {
'console_scripts': [
'redeem = redeem.Redeem:main',
'update-redeem = updater:perform_update',
]
},
)
# yapf: enable