-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py2app.py
More file actions
123 lines (105 loc) · 3.73 KB
/
setup.py2app.py
File metadata and controls
123 lines (105 loc) · 3.73 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
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
"""
This is a setup.py script generated by py2applet
Usage:
python2.7 setup.py py2app
"""
from setuptools import setup
APP = ['brainstorms-local.py']
data_files=[ \
(".", \
#("Content/Resources", \
["puzzlebox_brainstorms_configuration.ini"]),
("images", \
["images/puzzlebox.ico", \
"images/puzzlebox.icns", \
"images/puzzlebox_logo.png", \
"images/1-upper_left-orange.png", \
"images/1-upper_left-white.png", \
"images/2-up-orange.png", \
"images/2-up-white.png", \
"images/3-upper_right-orange.png", \
"images/3-upper_right-white.png", \
"images/7-lower_left-orange.png", \
"images/7-lower_left-white.png", \
"images/8-down-orange.png", \
"images/8-down-white.png", \
"images/9-lower_right-orange.png", \
"images/9-lower_right-white.png", \
"images/brainstorms-aileron_left.svg", \
"images/brainstorms-aileron_right.svg", \
"images/brainstorms-elevator_forward.svg", \
"images/brainstorms-elevator_reverse.svg", \
"images/brainstorms-fly_forward.svg", \
"images/brainstorms-hover.svg", \
"images/brainstorms-land_arrow.svg", \
"images/brainstorms-rudder-left.svg", \
"images/brainstorms-rudder-right.svg", \
"images/brainstorms_stop.svg", \
"images/brainstorms_wheelchair_forward.svg", \
"images/brainstorms_wheelchair_left.svg", \
"images/brainstorms_wheelchair_reverse.svg", \
"images/brainstorms_wheelchair_right.svg", \
"images/braintorms-throttle_up.svg", \
"images/puzzlebox_helicopter.svg", \
]), \
#("qt_menu.nib", \
#["/opt/local/lib/Resources/qt_menu.nib/classes.nib", \
#"/opt/local/lib/Resources/qt_menu.nib/info.nib", \
#"/opt/local/lib/Resources/qt_menu.nib/keyedobjects.nib", \
#]), \
]
data_files=[]
OPTIONS = { \
#'argv_emulation': True, \
'argv_emulation': False, \
'iconfile': 'images/puzzlebox.icns', \
'strip': True, \
# Semi-standalone is an option you can enable with py2app that makes
# your code reliant on the version of Python that is installed with the OS.
# You also need to enable site-packages, as well (which apparently encourages
# py2app to create the links to Python necessary for getting the bundle up
# and running, although it's only supposed to tell it to include the
# system and user site-packages in the system path)
# http://beckism.com/2009/03/pyobjc_tips/
#'semi_standalone': True, \
#'site_packages': True, \
'includes': [ \
'PySide.QtSvg', \
], \
'excludes': ['PyQt4', 'sip'], \
'frameworks': [ \
"/opt/local/share/qt4/plugins/imageformats/libqjpeg.dylib", \
"/opt/local/share/qt4/plugins/imageformats/libqgif.dylib", \
"/opt/local/share/qt4/plugins/imageformats/libqico.dylib", \
"/opt/local/share/qt4/plugins/imageformats/libqmng.dylib", \
"/opt/local/share/qt4/plugins/imageformats/libqsvg.dylib", \
"/opt/local/share/qt4/plugins/imageformats/libqtiff.dylib", \
], \
"resources": [ \
"puzzlebox_brainstorms_configuration.ini", \
#"images/puzzlebox.ico", \
#"/opt/local/lib/Resources/qt_menu.nib/classes.nib", \
#"/opt/local/lib/Resources/qt_menu.nib/info.nib", \
#"/opt/local/lib/Resources/qt_menu.nib/keyedobjects.nib", \
], \
}
setup(
name='Puzzlebox Brainstorms',
version='0.8.0',
description='Puzzlebox Brainstorms provides Brain-Computer Interface (BCI) controls for robots and devices',
author='Steve Castellotti',
author_email='sc@puzzlebox.info',
url='http://brainstorms.puzzlebox.info',
classifiers=[ \
'Development Status :: 5 - Production/Stable',
'Intended Audience :: End Users/Desktop',
'Programming Language :: Python',
'Operating System :: OS Independent',
'License :: Commercial',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
],
app=APP,
data_files=data_files,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)