• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-framework-AddressBook/Examples/Plugins/Python Address Label/
1"""
2Script for building the example.
3
4Usage:
5    python setup.py py2app
6
7To use this copy dist/PyAddressLabel.plugin to the plugin directory:
8   $ mv dist/PyAddressLabel.plugin \
9           ~/Library/Address\ Book\ Plug-Ins/PyAddressLabel.plugin
10"""
11from distutils.core import setup
12import py2app
13
14infoPlist = dict(
15    CFBundleName='PyAddressLabel',
16    CFBundleGetInfoString='Silly PopUp for AddressBook',
17    CFBundleVersion='0.1',
18    CFBundleShortVersionString = '0.1',
19    NSPrincipalClass='PyAddressLabelDelegate',
20)
21
22setup(
23    name='PyAddressLabel',
24    plugin=['plugin.py'],
25    data_files=[],
26    options=dict(py2app=dict(
27        extension=".bundle",
28        plist=infoPlist,
29    )),
30)
31