-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py2app.py
More file actions
106 lines (87 loc) · 2.93 KB
/
setup.py2app.py
File metadata and controls
106 lines (87 loc) · 2.93 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
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
#if (sys.platform != "win32") and hasattr(sys, 'frozen'):
#root.tk.call('console', 'hide')
from setuptools import setup
APP = ['jigsaw-gui.py']
data_files=[ \
(".", \
#("Content/Resources", \
["puzzlebox_jigsaw_configuration.ini"]),
("images", \
["images/puzzlebox.ico", \
"images/puzzlebox.icns", \
"images/puzzlebox_logo.png", \
"images/jigsaw_left.svg", \
"images/jigsaw_reload.svg", \
"images/jigsaw_right.svg", \
"images/jigsaw_stop.svg", \
"images/jigsaw_left.png", \
"images/jigsaw_reload.png", \
"images/jigsaw_right.png", \
"images/jigsaw_stop.png", \
]), \
#("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_jigsaw_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 Jigsaw',
version='1.4.0',
description='An integrated bio and neurofeedback marketing solution for web design, content, and software evaluation',
author='Steve Castellotti',
author_email='sc@puzzlebox.info',
url='http://jigsaw.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'],
)