• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-core/Examples/NonFunctional/RemotePyInterpreter/
1"""
2Script for building the example.
3
4Usage:
5    python setup.py py2app
6"""
7from distutils.core import setup
8import py2app
9
10plist = dict(
11    CFBundleIdentifier=u'net.sf.pyobjc.RemotePyInterpreter',
12    CFBundleDocumentTypes=[
13        dict(
14            CFBundleTypeExtensions=[
15                u'RemotePyInterpreter',
16                u'*',
17            ],
18            CFBundleTypeName=u'RemotePyInterpreter Session',
19            CFBundleTypeRole=u'Editor',
20            NSDocumentClass=u'RemotePyInterpreterDocument',
21        ),
22    ],
23)
24
25REMOTE_REQUIREMENTS = ['tcpinterpreter', 'netrepr', 'remote_console', 'remote_pipe', 'remote_bootstrap']
26DATA_FILES = ['English.lproj'] + [(s + '.py') for s in REMOTE_REQUIREMENTS]
27
28setup(
29    app=["RemotePyInterpreter.py"],
30    data_files=DATA_FILES,
31    options=dict(py2app=dict(plist=plist)),
32)
33