• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /macosx-10.10/pyobjc-45/pyobjc/pyobjc-framework-PreferencePanes-2.5.1/Examples/EnvironmentPrefs/
1"""
2Script for building the example.
3
4Usage:
5    python setup.py py2app
6"""
7from setuptools import setup
8import sys
9
10infoPlist = dict(
11    CFBundleName='Shell Environment',
12    #CFBundleIconFile='ShellEnv.icns',
13    CFBundleGetInfoString='Shell Environment Panel',
14    CFBundleVersion='0.1',
15    CFBundleShortVersionString = '0.1',
16    NSPrefPaneIconLabel='Shell Environment',
17    NSPrefPaneIconFile='ShellEnv.icns',
18    NSPrincipalClass='EnvironmentPane',
19    NSMainNibFile='EnvironmentPane',
20)
21
22setup_args = {}
23if sys.version_info[0] == 3:
24    setup_args['use_2to3'] = 1
25
26setup(
27    name="Shell Environment",
28    plugin=['ShellEnv.py'],
29    data_files=["English.lproj", "Dutch.lproj", "ShellEnv.icns"],
30    options=dict(py2app=dict(
31        extension=".prefPane",
32        plist=infoPlist,
33    )),
34    **setup_args
35)
36