• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/PackageManager/
1"""
2Script for building the example.
3
4Usage:
5    python setup.py py2app
6"""
7# This is very likely incorrect, as the application is non-existant at the
8# moment.
9from distutils.core import setup
10import py2app
11
12import os
13import sys
14import glob
15
16DB_FILE_TYPE="Python Package Database"
17
18plist = dict(
19    CFBundleName='Package Manager',
20    CFBundleIconFile='PackageManager.icns',
21    CFBundleDocumentTypes=[
22        dict(
23            CFBundleTypeName=DB_FILE_TYPE,
24            CFBundleTypeRole='Editor',
25            NSDocumentClass='PackageDatabase',
26            # CFBundleTypeIconFile='Package Database.icns',
27            CFBundleTypeExtensions = ['packman', 'plist' ],
28            CFBundleTypeOSTypes=[],
29        ),
30    ],
31
32    CFBundleGetInfoString='1.0, Copyright 2004 Ronald Oussoren',
33    CFBundleIdentifier='net.sf.pyobjc.PackageManager',
34    CFBundleShortVersionString='1.0',
35    CFBundleVersion='1.0',
36
37    # We need at least Panther, it may work on Jaguar but I've not yet
38    # verified if it should work.
39    LSMinimumSystemVersion='10.3.0',
40
41    # We're not apple-scriptable
42    NSAppleScriptEnabled='No',
43)
44
45setup(
46    app=["packman.py"],
47    data_files=glob.glob("Resources/*"),
48    options=dict(py2app=dict(plist=plist)),
49)
50