source: orbit/python/setup-orbit.py2app.py @ 80b23ae

Last change on this file since 80b23ae was 5420592, checked in by Steve Castellotti <sc@…>, 8 years ago
  • preparation for packaging
  • Property mode set to 100644
File size: 3.3 KB
Line 
1"""
2This is a setup.py script generated by py2applet
3
4Usage:
5    python setup.py py2app
6"""
7
8#if (sys.platform != "win32") and hasattr(sys, 'frozen'):
9  #root.tk.call('console', 'hide')
10
11from setuptools import setup
12import PySide
13
14APP = ['orbit-gui.py']
15
16data_files=[ \
17        (".", \
18        #("Content/Resources", \
19                ["puzzlebox_orbit_configuration.ini"]),
20        ("images", \
21                ["images/puzzlebox.ico", \
22                        "images/puzzlebox.icns", \
23                        "images/puzzlebox_logo.png", \
24                        "images/jigsaw_left.svg", \
25                        "images/jigsaw_reload.svg", \
26                        "images/jigsaw_right.svg", \
27                        "images/jigsaw_stop.svg", \
28                        "images/jigsaw_left.png", \
29                        "images/jigsaw_reload.png", \
30                        "images/jigsaw_right.png", \
31                        "images/jigsaw_stop.png", \
32                        "images/orbit-fly_forward.png", \
33                        "images/orbit-hover.png", \
34                        "images/orbit-land_arrow.png", \
35                        "images/orbit-rudder-left.png", \
36                        "images/orbit-rudder-right.png", \
37                        "images/orbit_helicopter.png", \
38                        "images/puzzlebox_orbit-flowchart.png", \
39                ]), \
40        ("audio", \
41                ["audio/throttle_hover_os_x.wav", \
42                ]), \
43        #("qt_menu.nib", \
44                #["/opt/local/lib/Resources/qt_menu.nib/classes.nib", \
45                        #"/opt/local/lib/Resources/qt_menu.nib/info.nib", \
46                        #"/opt/local/lib/Resources/qt_menu.nib/keyedobjects.nib", \
47                #]), \
48]
49
50data_files=[]
51
52OPTIONS = { \
53        #'argv_emulation': True, \
54        'argv_emulation': False, \
55        'iconfile': 'images/puzzlebox.icns', \
56        'strip': True, \
57       
58        # Semi-standalone is an option you can enable with py2app that makes
59        # your code reliant on the version of Python that is installed with the OS.
60        # You also need to enable site-packages, as well (which apparently encourages
61        # py2app to create the links to Python necessary for getting the bundle up
62        # and running, although it's only supposed to tell it to include the
63        # system and user site-packages in the system path)
64        # http://beckism.com/2009/03/pyobjc_tips/
65       
66        #'semi_standalone': True, \
67        #'site_packages': True, \
68       
69        'includes': [ \
70                'PySide', \
71                'PySide.QtSvg', \
72        ], \
73       
74#       'excludes': ['PyQt4', 'sip'], \
75        'excludes': ['PyQt4'], \
76       
77        'frameworks': [ \
78                "/opt/local/share/qt4/plugins/imageformats/libqjpeg.dylib", \
79                "/opt/local/share/qt4/plugins/imageformats/libqgif.dylib", \
80                "/opt/local/share/qt4/plugins/imageformats/libqico.dylib", \
81                "/opt/local/share/qt4/plugins/imageformats/libqmng.dylib", \
82                "/opt/local/share/qt4/plugins/imageformats/libqsvg.dylib", \
83                "/opt/local/share/qt4/plugins/imageformats/libqtiff.dylib", \
84        ], \
85       
86        "resources": [ \
87                "puzzlebox_orbit_configuration.ini", \
88                #"images/puzzlebox.ico", \
89                #"/opt/local/lib/Resources/qt_menu.nib/classes.nib", \
90                #"/opt/local/lib/Resources/qt_menu.nib/info.nib", \
91                #"/opt/local/lib/Resources/qt_menu.nib/keyedobjects.nib", \
92        ], \
93}
94
95setup(
96       
97        name='Puzzlebox Orbit',
98        version='1.4.4',
99        description='An integrated bio and neurofeedback marketing solution for web design, content, and software evaluation',
100        author='Steve Castellotti',
101        author_email='sc@puzzlebox.info',
102        url='http://puzzlebox.info',
103       
104        classifiers=[ \
105                'Development Status :: 5 - Production/Stable',
106                'Intended Audience :: End Users/Desktop',
107                'Programming Language :: Python',
108                'Operating System :: OS Independent',
109                'License :: Commercial',
110                'Topic :: Scientific/Engineering :: Human Machine Interfaces',
111        ],
112       
113        app=APP,
114        data_files=data_files,
115        options={'py2app': OPTIONS},
116        setup_requires=['py2app'],
117
118)
Note: See TracBrowser for help on using the repository browser.