• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /macosx-10.10.1/pyobjc-45/2.6/pyobjc/pyobjc-framework-WebKit/Examples/WebKitInterpreterPlugin/
1"""
2Script for building the example.
3
4Usage:
5    python setup.py py2app
6"""
7from distutils.core import setup
8import py2app
9
10MIME = 'application/x-pyobjc-demo-webkitinterpreter'
11plist = dict(
12    NSPrincipalClass='WebKitInterpreter',
13    WebPluginName='WebKit PyInterpreter Plug-In',
14    WebPluginDescription='PyObjC demo that embeds a Python interpreter',
15    CFBundlePackageType='WBPL',
16    WebPluginMIMETypes={
17        MIME: dict(
18            WebPluginExtensions=['webkitinterpreter'],
19            WebPluginTypeDescription='WebKit PyInterpreter',
20        ),
21    },
22)
23
24setup(
25    name="WebKitInterpreter",
26    plugin = ["WebKitInterpreter.py"],
27    options = dict(py2app=dict(plist=plist)),
28)
29