forked from dustcloud/dustlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
155 lines (150 loc) · 4.96 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# use distutils because it's easier to specify what's included
from distutils.core import setup
try:
import py2exe
except ImportError:
pass
# Grab the current version from the version file
import glob
import os
import sys
# edit the path to what the binaries expect
sys.path.append(os.path.join('SmartMeshSDK'))
sys.path.append(os.path.join('views', 'web'))
sys.path.append(os.path.join('views', 'cli'))
from DustLink import DustLink_version
# Create the DustLink package
setup(
name = 'DustLink',
version = '.'.join([str(v) for v in DustLink_version.VERSION]),
scripts = [
os.path.join('bin', 'dustLinkFullWeb', 'dustLinkFullWeb.py'),
os.path.join('func_tests', 'dummyDataWeb', 'dummyDataWeb.py'),
],
packages = [
'DataConnector',
'DustLink',
'DustLinkData',
'EventBus',
'Gateway',
'SmartMeshSDK',
'SmartMeshSDK.ApiDefinition',
'SmartMeshSDK.HartMgrConnector',
'SmartMeshSDK.HartMoteConnector',
'SmartMeshSDK.IpMgrConnectorMux',
'SmartMeshSDK.IpMgrConnectorSerial',
'SmartMeshSDK.IpMoteConnector',
'SmartMeshSDK.protocols',
'SmartMeshSDK.protocols.DC2126AConverters',
'SmartMeshSDK.protocols.oap',
'SmartMeshSDK.protocols.xivelyConnector',
'SmartMeshSDK.SerialConnector',
'views',
'views.cli',
'views.cli.dustCli',
'views.web',
'views.web.dustWeb',
'views.web.dustWeb.thirdparty',
'views.web.dustWeb.viz',
'views.web.dustWeb.web',
'views.web.dustWeb.web.contrib',
'views.web.dustWeb.web.wsgiserver',
],
data_files = [
(
'',
['DN_LICENSE.txt']
),
(
'',
['requirements.txt']
),
(
'bin/dustLinkFullWeb',
['bin/dustLinkFullWeb/logging.conf']
),
(
'views/web/dustWeb/keys',
['views/web/dustWeb/keys/README.txt']
),
(
'views/web/dustWeb/logs',
['views/web/dustWeb/logs/README.txt']
),
(
'views/web/dustWeb/static',
['views/web/dustWeb/static/README.txt']
),
(
'views/web/dustWeb/static/dashboard',
glob.glob(os.path.join('views','web','dustWeb','static','dashboard','*'))
),
(
'views/web/dustWeb/static/javascript',
glob.glob(os.path.join('views','web','dustWeb','static','javascript','*'))
),
(
'views/web/dustWeb/static/templates',
['views/web/dustWeb/static/templates/README.txt']
),
(
'views/web/dustWeb/static/templates/datatables',
['views/web/dustWeb/static/templates/datatables/README.txt']
),
(
'views/web/dustWeb/static/templates/datatables/css',
glob.glob(os.path.join('views','web','dustWeb','static','templates','datatables','css','*'))
),
(
'views/web/dustWeb/static/templates/datatables/images',
glob.glob(os.path.join('views','web','dustWeb','static','templates','datatables','images','*'))
),
(
'views/web/dustWeb/static/templates/dust',
['views/web/dustWeb/static/templates/dust/README.txt']
),
(
'views/web/dustWeb/static/templates/dust/css',
glob.glob(os.path.join('views','web','dustWeb','static','templates','dust','css','*'))
),
(
'views/web/dustWeb/static/templates/dust/images',
glob.glob(os.path.join('views','web','dustWeb','static','templates','dust','images','*'))
),
(
'views/web/dustWeb/static/templates/dust/javascript',
glob.glob(os.path.join('views','web','dustWeb','static','templates','dust','javascript','*'))
),
(
'views/web/dustWeb/static/testicons',
glob.glob(os.path.join('views','web','dustWeb','static','testicons','*'))
),
(
'views/web/dustWeb/templates',
['views/web/dustWeb/templates/README.txt']
),
(
'views/web/dustWeb/templates/dust',
glob.glob(os.path.join('views','web','dustWeb','templates','dust','*'))
),
(
'views/web/dustWeb/templates/white',
glob.glob(os.path.join('views','web','dustWeb','templates','white','*'))
),
],
author = 'Linear Technology',
author_email = "[email protected]",
license = 'see DN_LICENSE.txt',
# py2exe parameters
console = [
{'script': os.path.join('bin', 'dustLinkFullWeb', 'dustLinkFullWeb.py'),},
],
windows = [
],
zipfile = None,
options = {
'py2exe': {
#'bundle_files': 1,
'dll_excludes': ['MSVCP90.dll', 'w9xpopen.exe'], },
},
)