|
Revision 984, 1.0 kB
(checked in by Chris.Barker, 10 months ago)
|
|
tiny changes to the comments..
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | """ |
|---|
| 2 | This is a setup.py script altered from one generated by py2applet |
|---|
| 3 | |
|---|
| 4 | Usage: |
|---|
| 5 | python Macsetup.py py2app -A |
|---|
| 6 | |
|---|
| 7 | which will build an in-place, development version. It has yet to be tested |
|---|
| 8 | with a proper application bundle |
|---|
| 9 | |
|---|
| 10 | """ |
|---|
| 11 | |
|---|
| 12 | from setuptools import setup |
|---|
| 13 | |
|---|
| 14 | # A custom plist for letting it associate with all files. |
|---|
| 15 | Plist = dict(CFBundleDocumentTypes= [dict(CFBundleTypeExtensions=["*"], |
|---|
| 16 | #CFBundleTypeName="kUTTypeText", # this should be text files, but I'm not sure the details. |
|---|
| 17 | CFBundleTypeRole="Editor"), |
|---|
| 18 | ] |
|---|
| 19 | ) |
|---|
| 20 | |
|---|
| 21 | APP = ['peppy.py'] |
|---|
| 22 | DATA_FILES = ["peppy/icons"] |
|---|
| 23 | OPTIONS = {'argv_emulation': True, # this puts the names of dropped files into sys.argv when starting the app. |
|---|
| 24 | 'iconfile': 'graphics/peppy.icns', |
|---|
| 25 | 'plist': Plist, |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | setup( |
|---|
| 29 | app=APP, |
|---|
| 30 | data_files=DATA_FILES, |
|---|
| 31 | options={'py2app': OPTIONS}, |
|---|
| 32 | setup_requires=['py2app'], |
|---|
| 33 | ) |
|---|