Source

pyobjc / setup.py

Ronald Oussoren 2c2c813 


Ronald Oussoren 1f23dbf 
Ronald Oussoren 10acb9e 
Bob Ippolito f033479 
Ronald Oussoren 2c2c813 
Bob Ippolito 002309a 






Ronald Oussoren 6e3c327 
Bob Ippolito f033479 
Bob Ippolito 002309a 

Bob Ippolito f033479 
Bob Ippolito 002309a 
Ronald Oussoren 6e3c327 
Ronald Oussoren 13a953a 






















Bill Bumgarner d8ca51a 
Ronald Oussoren 2c2c813 
Bill Bumgarner d8ca51a 
Bob Ippolito 002309a 




Ronald Oussoren 2c2c813 
Ronald Oussoren 4f21277 




Bob Ippolito c16c54c 
Ronald Oussoren 4f21277 
Ronald Oussoren 4d43208 













Bob Ippolito c16c54c 



Bob Ippolito 002309a 
Ronald Oussoren 4d43208 
Ronald Oussoren 4f21277 
Ronald Oussoren 03b596a 
Bob Ippolito c16c54c 
Ronald Oussoren a7633be 

Ronald Oussoren 7070bfb 
Bob Ippolito f400e4d 
Ronald Oussoren 4d25225 


Bob Ippolito c16c54c 
Ronald Oussoren 10acb9e 

Bob Ippolito c16c54c 
Ronald Oussoren 10acb9e 
Bob Ippolito c16c54c 

Ronald Oussoren 10acb9e 
Bob Ippolito c16c54c 
Ronald Oussoren 4d25225 
Ronald Oussoren 10acb9e 
Bob Ippolito c16c54c 
Ronald Oussoren 8a50683 
Bob Ippolito 308ca92 
Bob Ippolito e5ebcf6 


Bob Ippolito 308ca92 
Bob Ippolito ce6b49a 
Bob Ippolito f033479 
Bob Ippolito 308ca92 
Bob Ippolito f033479 
Bob Ippolito 308ca92 

Bob Ippolito c40b75f 
Ronald Oussoren 4f21277 

Bob Ippolito 002309a 







Ronald Oussoren 59ff625 
Ronald Oussoren 4f21277 






Ronald Oussoren 4d43208 
Ronald Oussoren 4f21277 







Ronald Oussoren 4d43208 




Bob Ippolito c16c54c 
Ronald Oussoren 4d43208 


Ronald Oussoren 5def8e5 
Ronald Oussoren 4d43208 

Ronald Oussoren 4f21277 
Bob Ippolito f033479 
Ronald Oussoren f9b5579 
Ronald Oussoren 4f21277 
Ronald Oussoren 4d43208 
Bob Ippolito c16c54c 





Ronald Oussoren 4f21277 





Bob Ippolito f033479 
Ronald Oussoren 4d43208 
Ronald Oussoren 4f21277 

Ronald Oussoren 4d43208 

Ronald Oussoren 4f21277 

Bob Ippolito 002309a 








Ronald Oussoren 1f23dbf 
Ronald Oussoren ade4ab5 
Bill Bumgarner 68f2339 
Bob Ippolito 002309a 






Ronald Oussoren 2c2c813 
Bob Ippolito 002309a 
Ronald Oussoren 2c2c813 
Bob Ippolito 002309a 








Ronald Oussoren 10acb9e 
Bob Ippolito 002309a 
Ronald Oussoren 4d43208 
Bob Ippolito 002309a 





















Ronald Oussoren 10acb9e 
Ronald Oussoren 4d43208 

Bob Ippolito 081bbd5 
Ronald Oussoren a1876c5 
Bill Bumgarner 68f2339 
Ronald Oussoren a1876c5 

Bob Ippolito c16c54c 
Ronald Oussoren 4f21277 
Ronald Oussoren a1876c5 
Ronald Oussoren 10acb9e 


Bob Ippolito c16c54c 
Ronald Oussoren 4d43208 


Bob Ippolito 081bbd5 
Bill Bumgarner 68f2339 
Ronald Oussoren a1876c5 
Bob Ippolito c16c54c 
Ronald Oussoren 4f21277 
Ronald Oussoren a1876c5 
Ronald Oussoren 10acb9e 


Ronald Oussoren 4d43208 
Ronald Oussoren 2c2c813 



Ronald Oussoren 59ff625 
Bob Ippolito 081bbd5 
Bill Bumgarner 68f2339 
Ronald Oussoren 59ff625 



Ronald Oussoren 10acb9e 


Ronald Oussoren 59ff625 
Bill Bumgarner d8ca51a 
Bob Ippolito 62cdbc7 

Bob Ippolito 081bbd5 
Bob Ippolito 62cdbc7 







Ronald Oussoren 5def8e5 
Ronald Oussoren 6266792 

Bob Ippolito 081bbd5 
Ronald Oussoren 6266792 








Ronald Oussoren 4d43208 
Bob Ippolito 110035a 

Bob Ippolito 081bbd5 
Bob Ippolito 110035a 









Ronald Oussoren 1f23dbf 

Bob Ippolito 081bbd5 
Bill Bumgarner 68f2339 
Ronald Oussoren 1f23dbf 



Ronald Oussoren 10acb9e 


Ronald Oussoren 1f23dbf 

Ronald Oussoren f352cbe 

Ronald Oussoren c3cdda6 


Ronald Oussoren f352cbe 
Ronald Oussoren 1f23dbf 

Bob Ippolito 081bbd5 
Bill Bumgarner 68f2339 
Ronald Oussoren 1f23dbf 


Bob Ippolito 002309a 



Ronald Oussoren 10acb9e 

Ronald Oussoren 1f23dbf 

Ronald Oussoren 81522f9 

Bob Ippolito 081bbd5 
Ronald Oussoren 81522f9 



Bob Ippolito 002309a 



Ronald Oussoren 81522f9 

Ronald Oussoren f2c5b81 
Ronald Oussoren 81522f9 
Ronald Oussoren 500faa9 

Ronald Oussoren a1876c5 






Ronald Oussoren 500faa9 

Bob Ippolito 62cdbc7 
Bob Ippolito 002309a 











Bob Ippolito 161b20b 
Bob Ippolito 002309a 
Bob Ippolito 62cdbc7 
Just van Rossum c6a4e73 
Bob Ippolito b27bd63 
Just van Rossum c6a4e73 

Bill Bumgarner ff549fc 
Ronald Oussoren a1876c5 




Bill Bumgarner ff549fc 
Bob Ippolito 002309a 













































Just van Rossum c6a4e73 
Bob Ippolito d1b044e 







Bob Ippolito 25067b7 




Bob Ippolito d1b044e 






  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
#!/usr/bin/env python

import sys
import os
import glob
import site

# We need at least Python 2.3
MIN_PYTHON = (2, 3)

if sys.version_info < MIN_PYTHON:
    vstr = '.'.join(map(str, MIN_PYTHON))
    raise SystemExit('PyObjC: Need at least Python ' + vstr)

# Add our utility library to the path
site.addsitedir(os.path.abspath('source-deps'))
sys.path.insert(1,
    os.path.abspath(os.path.join(os.path.dirname(__file__), 'setup-lib')))

from pyobjc_commands import extra_cmdclass

# Some PiPy stuff
LONG_DESCRIPTION="""
PyObjC is a bridge between Python and Objective-C.  It allows full
featured Cocoa applications to be written in pure Python.  It is also
easy to use other frameworks containing Objective-C class libraries
from Python and to mix in Objective-C, C and C++ source.

Python is a highly dynamic programming language with a shallow learning
curve.  It combines remarkable power with very clear syntax.

The installer package installs a number of Project Builder templates for
easily creating new Cocoa-Python projects, as well as support for syntax
coloring of Python files in Project Builder.

PyObjC also supports full introspection of Objective-C classes and
direct invocation of Objective-C APIs from the interactive interpreter.

PyObjC requires MacOS X 10.2 or later.  PyObjC works both with the Apple
provided Python installation in MacOS X 10.2 (and later) and with
MacPython 2.3.  Users of MacPython 2.3 can install PyObjC though the
PackageManager application.
"""

from distutils.core import setup, Extension
import os

def frameworks(*args):
    lst = []
    for arg in args:
        lst.extend(['-framework', arg])
    return lst

# On GNUstep we can read some configuration from the environment.
gs_root = os.environ.get('GNUSTEP_SYSTEM_ROOT')

if gs_root is None:
    #
    # MacOS X
    #
    def IfFrameWork(name, packages, extensions, headername=None):
        """
        Return the packages and extensions if the framework exists, or
        two empty lists if not.
        """
        for pth in ('/System/Library/Frameworks', '/Library/Frameworks'):
            basedir = os.path.join(pth, name)
            if os.path.exists(basedir):
                if (headername is None) or os.path.exists(os.path.join(basedir, "Headers", headername)):
                    return packages, extensions
        return [], []

    # Double-check
    if sys.platform != 'darwin':
        print "You're not running on MacOS X, and don't use GNUstep"
        print "I don't know how to build PyObjC on such a platform."
        print "Please read the ReadMe."
        print ""
        raise SystemExit("ObjC runtime not found")

    CFLAGS=[
        "-DMACOSX",
        "-DAPPLE_RUNTIME",
        "-no-cpp-precomp",
        "-Wno-long-double",
        "-g",
        #"-O0",

        # Loads of warning flags
        "-Wall", "-Wstrict-prototypes", "-Wmissing-prototypes",
        "-Wformat=2", "-W", "-Wshadow",
        "-Wpointer-arith", #"-Wwrite-strings",
        "-Wmissing-declarations",
        "-Wnested-externs",
        "-Wno-long-long",
        #"-Wfloat-equal",

        # These two are fairly useless:
        #"-Wunreachable-code",
        #"-pedantic",

        "-Wno-import",
        #"-Werror",

        # use the same optimization as Python, probably -O3,
        # but can be overrided by one of the following:

        # no optimization, for debugging
        #"-O0",

        # g4 optimized
        #"-fast", "-fPIC", "-mcpu=7450",

        # g5 optimized
        #"-fast", "-fPIC",
        ]

    OBJC_LDFLAGS = frameworks('Foundation')
    CF_LDFLAGS = frameworks('CoreFoundation', 'Foundation')
    FND_LDFLAGS = frameworks('CoreFoundation', 'Foundation')
    APPKIT_LDFLAGS = frameworks('CoreFoundation', 'AppKit')
    ADDRESSBOOK_LDFLAGS = frameworks('CoreFoundation', 'AddressBook', 'Foundation')
    SECURITY_INTERFACE_LDFLAGS = frameworks('CoreFoundation', 'SecurityInterface', 'Foundation')
    EXCEPTION_HANDLING_LDFLAGS = frameworks('CoreFoundation', 'ExceptionHandling', 'Foundation')
    PREFPANES_LDFLAGS = frameworks('CoreFoundation', 'PreferencePanes', 'Foundation')

else:
    #
    # GNUstep
    #
    # NOTE: We add '-g' to the compile flags to make development easier
    # on systems where the installed python hasn't been build with debugging
    # support.
    gs_root = gs_root + '/Library'

    gs_cpu = os.environ.get('GNUSTEP_HOST_CPU')
    gs_os = os.environ.get('GNUSTEP_HOST_OS')
    gs_combo = os.environ.get('LIBRARY_COMBO')

    gs_lib_dir = gs_cpu + '/' + gs_os
    gs_flib_dir = gs_cpu + '/' + gs_os + '/' + gs_combo

    def IfFrameWork(name, packages, extensions, headername=None):
        """
        Return the packages and extensions if the framework exists, or
        two empty lists if not.
        """
        name = os.path.splitext(name)[0]
        for pth in (gs_root, ):
            basedir = os.path.join(pth, 'Headers', name)
            if os.path.exists(basedir):
                return packages, extensions
        return [], []

    CFLAGS=[
        '-g',
        ##'-O0',
        '-Wno-import',

        # The flags below should somehow be extracted from the GNUstep
        # build environment (makefiles)!
        '-DGNU_RUNTIME=1',
        '-DGNUSTEP_BASE_LIBRARY=1',
        '-fconstant-string-class=NSConstantString',
        '-fgnu-runtime',
        '-I' + gs_root + '/Headers',
        '-I' + gs_root + '/Headers/gnustep',
        '-I' + gs_root + '/Headers/' + gs_lib_dir
        ]

    OBJC_LDFLAGS=[
        '-g',
        '-L', gs_root + '/Libraries/',
        '-L', gs_root + '/Libraries/' + gs_flib_dir,
        '-L', gs_root + '/Libraries/' + gs_lib_dir,
        '-lgnustep-base',
        '-lobjc'
        ]

    FND_LDFLAGS = OBJC_LDFLAGS
    FNDMAP_LDFLAGS = OBJC_LDFLAGS
    APPKIT_LDFLAGS = OBJC_LDFLAGS + ['-lgnustep-gui']
    APPMAP_LDFLAGS = OBJC_LDFLAGS + ['-lgnustep-gui']
    CF_LDFLAGS = []
    ADDRESSBOOK_LDFLAGS = OBJC_LDFLAGS + ['-lAddresses']
    PREFPANES_LDFLAGS = []
    SECURITY_INTERFACE_LDFLAGS = []
    EXCEPTION_HANDLING_LDFLAGS = []

CFLAGS.append('-Ibuild/codegen/')

CorePackages = [ 'objc' ]
objcExtension = Extension("objc._objc",
    glob.glob(os.path.join('Modules', 'objc', '*.m')),
    extra_compile_args=CFLAGS,
    extra_link_args=OBJC_LDFLAGS,
)
objcExtension.use_libffi = True

CoreExtensions =  [ objcExtension ]

for test_source in glob.glob(os.path.join('Modules', 'objc', 'test', '*.m')):
    name, ext = os.path.splitext(os.path.basename(test_source))
    ext = Extension('objc.test.' + name,
        [test_source],
        extra_compile_args=['-IModules/objc'] + CFLAGS,
        extra_link_args=OBJC_LDFLAGS)
    if name == 'ctests':
        ext.use_libffi = True
    CoreExtensions.append(ext)

CoreFoundationDepends = dict()

FoundationDepends = dict(
    depends=(
          glob.glob('build/codegen/_Fnd_*.inc')
        + glob.glob('Modules/Foundation/*.m')
    ),
)

AppKitDepends = dict(
    depends=(
          glob.glob('build/codegen/_App_*.inc')
        + glob.glob('Modules/AppKit/*.m')
    ),
)

INCFILES = glob.glob('build/codegen/*.inc')

AddressBookDepends = dict(depends=INCFILES)
SecurityInterfaceDepends = dict(depends=INCFILES)
ExceptionHandlingDepends = dict(depends=INCFILES)
PrefPanesDepends = dict(depends=INCFILES)
InterfaceBuilderDepends = dict(depends=INCFILES)
WebKitDepends = dict(depends=INCFILES)

FoundationPackages, FoundationExtensions = \
        IfFrameWork('Foundation.framework', [ 'Foundation' ], [
          Extension("Foundation._Foundation",
                    [
                        "Modules/Foundation/_Foundation.m",
                    ],
                    extra_compile_args=[
                        "-IModules/objc",
                    ] + CFLAGS,
                    extra_link_args=[
                    ] + FND_LDFLAGS,
                    **FoundationDepends
                    ),
        ])

AppKitPackages, AppKitExtensions = \
        IfFrameWork('AppKit.framework', [ 'AppKit' ], [
          Extension("AppKit._AppKit",
                    ["Modules/AppKit/_AppKit.m"],
                    extra_compile_args=[
                        "-IModules/objc",
                    ] + CFLAGS,
                    extra_link_args=[
                    ] + APPKIT_LDFLAGS,
                    **AppKitDepends
                    ),
      ])

# The AdressBook module is only installed when the user actually has the
# AddressBook framework.
AddressBookPackages, AddressBookExtensions = \
        IfFrameWork('AddressBook.framework', [ 'AddressBook' ], [
            Extension('AddressBook._AddressBook',
                      [ 'Modules/AddressBook/_AddressBook.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=[
                      ] + ADDRESSBOOK_LDFLAGS,
                      **AddressBookDepends
                      ),
        ])

CoreFoundationPackages, CoreFoundationExtensions = \
        IfFrameWork('CoreFoundation.framework', [ 'CoreFoundation' ], [
            Extension("PyObjCTools._machsignals",
                      [ 'Modules/CoreFoundation/machsignals.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=[
                      ] + CF_LDFLAGS,
                      **CoreFoundationDepends),
        ])

SecurityInterfacePackages, SecurityInterfaceExtensions = \
        IfFrameWork('SecurityInterface.framework', [ 'SecurityInterface' ], [
            Extension('SecurityInterface._SecurityInterface',
                      [ 'Modules/SecurityInterface/_SecurityInterface.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=[
                      ] + SECURITY_INTERFACE_LDFLAGS,
                      **SecurityInterfaceDepends
                      ),
        ])

ExceptionHandlingPackages, ExceptionHandlingExtensions = \
        IfFrameWork('ExceptionHandling.framework', [ 'ExceptionHandling' ], [
            Extension('ExceptionHandling._ExceptionHandling',
                      [ 'Modules/ExceptionHandling/_ExceptionHandling.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=[
                      ] + EXCEPTION_HANDLING_LDFLAGS,
                      **ExceptionHandlingDepends
                      ),
        ])

PrefPanesPackages, PrefPanesExtensions = \
        IfFrameWork('PreferencePanes.framework', [ 'PreferencePanes' ], [
            Extension('PreferencePanes._PreferencePanes',
                      [ 'Modules/PreferencePanes/_PreferencePanes.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=[
                      ] + PREFPANES_LDFLAGS,
                      **PrefPanesDepends
                      ),
        ])

ScreenSaverPackages, ScreenSaverExtensions = \
        IfFrameWork('ScreenSaver.framework', [ 'ScreenSaver' ], [])
        
MessagePackages, MessageExtensions = \
        IfFrameWork('Message.framework', [ 'Message' ], [])

InterfaceBuilderPackages, InterfaceBuilderExtensions = \
        IfFrameWork('InterfaceBuilder.framework', [ 'InterfaceBuilder' ], [
            Extension('InterfaceBuilder._InterfaceBuilder',
                      [ 'Modules/InterfaceBuilder/_InterfaceBuilder.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=frameworks(
                        'InterfaceBuilder',
                        'Foundation'
                      ),
                      **InterfaceBuilderDepends
                      ),
        ])

WebKitPackages, WebKitExtensions = \
        IfFrameWork('WebKit.framework', [ 'WebKit' ], [
            Extension('WebKit._WebKit',
                      [ 'Modules/WebKit/_WebKit.m' ],
                      extra_compile_args=[
                        '-IModules/objc',
                      ] + CFLAGS,
                      extra_link_args=frameworks(
                        'WebKit',
                        'Foundation'
                      ),
                      **WebKitDepends
                      ),
        ], headername="WebKit.h")


def package_version():
    fp = open('Modules/objc/pyobjc.h', 'r')
    for ln in fp.readlines():
        if ln.startswith('#define OBJC_VERSION'):
            fp.close()
            return ln.split()[-1][1:-1]

    raise ValueError, "Version not found"


# skipping CoreFoundationPackages, it's fake!
packages = (
      CorePackages
    + AppKitPackages
    + FoundationPackages
    + AddressBookPackages
    + PrefPanesPackages
    + InterfaceBuilderPackages
    + ScreenSaverPackages
    + WebKitPackages
    + MessagePackages
    + SecurityInterfacePackages
    + ExceptionHandlingPackages
    + [ 'PyObjCTools' , 'PyObjCScripts' ]
)

# The following line is needed to allow separate flat modules
# to be installed from a different folder
package_dir = dict([(pkg, 'Lib/' + pkg) for pkg in packages])

for aPackage in package_dir.keys():
    testDir = os.path.join(package_dir[aPackage], 'test')
    if os.path.isdir(testDir):
        packageName = '%s.test' % aPackage
        package_dir[packageName] = testDir
        packages.append(packageName)

CLASSIFIERS = filter(None,
"""
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: MacOS X :: Cocoa
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: MacOS :: MacOS X
Programming Language :: Python
Programming Language :: Objective C
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: User Interfaces
""".splitlines())

dist = setup(
    name = "pyobjc",
    version = package_version(),
    description = "Python<->ObjC Interoperability Module",
    long_description = LONG_DESCRIPTION,
    author = "bbum, RonaldO, SteveM, LeleG, many others stretching back through the reaches of time...",
    author_email = "pyobjc-dev@lists.sourceforge.net",
    url = "http://pyobjc.sourceforge.net/",
    platforms = [ 'MacOS X' ],
    ext_modules = (
         CoreExtensions
       + AppKitExtensions
       + FoundationExtensions
       + AddressBookExtensions
       + PrefPanesExtensions
       + InterfaceBuilderExtensions
       + ScreenSaverExtensions
       + MessageExtensions
       + SecurityInterfaceExtensions
       + ExceptionHandlingExtensions
       + CoreFoundationExtensions
       + WebKitExtensions
    ),
    packages = packages,
    package_dir = package_dir,
    scripts = [ 'Scripts/nibclassbuilder', ],
    extra_path = "PyObjC",
    cmdclass = extra_cmdclass,
    classifiers = CLASSIFIERS,
    license = 'MIT License',
    download_url = 'http://pyobjc.sourceforge.net/software/index.php',
)

if 'install' in sys.argv:
    import textwrap
    print textwrap.dedent(
    """
    **NOTE**

    Installing PyObjC with "setup.py install" *does not* install the following:
    
    - py2app (bdist_mpkg, modulegraph, altgraph, ...) and its tools
    - Xcode or Project Builder templates
    - Documentation
    - Example code

    The recommended method for installing PyObjC is to do:
        
        $ python setup.py bdist_mpkg --open

    This will create and open an Installer metapackage that contains PyObjC,
    py2app, and all the goodies!
    """)