-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (25 loc) · 913 Bytes
/
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
"""
This is a setup.py script altered from one generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
# A custom plist for letting it associate with all files.
Plist = dict(CFBundleDocumentTypes= [dict(CFBundleTypeExtensions=["*"],
#CFBundleTypeName="kUTTypeText", # this should be text files, but I'm not sure the details.
CFBundleTypeRole="Editor"),
]
)
APP = ['MainFrame.py']
DATA_FILES = ['graphics']
OPTIONS = {'argv_emulation': False, # this puts the names of dropped files into sys.argv when starting the app.
'iconfile': 'deepsky.icns',
'plist': Plist,
'packages' : 'wx',
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)