""" Script for building the example. Usage: python setup.py py2app """ from distutils.core import setup import py2app plist = dict( CFBundleDocumentTypes = [ dict( CFBundleTypeExtensions=["macgregor"], CFBundleTypeName="MacGregor Search Set", CFBundleTypeRole="Editor", NSDocumentClass="MacGregorDocument", ), ] ) setup( app=["MacGregor.py"], data_files=["MainMenu.nib", "MacGregorDocument.nib"], options=dict(py2app=dict(plist=plist)), )