-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (35 loc) · 932 Bytes
/
setup.py
File metadata and controls
41 lines (35 loc) · 932 Bytes
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
from distutils.core import setup
import py2app
NAME = 'menu'
SCRIPT = 'menu.py'
VERSION = '0.1'
ID = 'menu'
"""
python setup.py py2app -A -r beaker.png
python setup.py py2app -r beaker.png
OPTIONS = {
'iconfile':'icon.icns',
'plist': {'CFBundleShortVersionString':'0.1.0',}
}
get icons http://stackoverflow.com/questions/5608080/how-to-specify-py2app-icon
"""
plist = dict(
CFBundleName = NAME,
CFBundleShortVersionString = ' '.join([NAME, VERSION]),
CFBundleGetInfoString = NAME,
CFBundleExecutable = NAME,
CFBundleIdentifier = 'org.ipython.%s' % ID,
LSUIElement = '0', #makes it not appear in cmd-tab task list etc.
)
app_data = dict(script=SCRIPT, plist=plist)
setup(
app = [app_data],
options = {
'py2app':{
'resources':[
],
'excludes':[
]
}
}
)