root/trunk/setup_mac.py

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"""
2This is a setup.py script altered from one generated by py2applet
3
4Usage:
5    python Macsetup.py py2app -A
6
7which will build an in-place, development version. It has yet to be tested
8with a proper application bundle
9
10"""
11
12from setuptools import setup
13
14# A custom plist for letting it associate with all files.
15Plist = 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
21APP = ['peppy.py']
22DATA_FILES = ["peppy/icons"]
23OPTIONS = {'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
28setup(
29    app=APP,
30    data_files=DATA_FILES,
31    options={'py2app': OPTIONS},
32    setup_requires=['py2app'],
33)
Note: See TracBrowser for help on using the browser.