bundlebuilder
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/bundlebuilder.py
Module Docs

bundlebuilder.py -- Tools to assemble MacOS X (application) bundles.
 
This module contains two classes to build so called "bundles" for
MacOS X. BundleBuilder is a general tool, AppBuilder is a subclass
specialized in building application bundles.
 
[Bundle|App]Builder objects are instantiated with a bunch of keyword
arguments, and have a build() method that will do all the work. See
the class doc strings for a description of the constructor arguments.
 
The module contains a main program that can be used in two ways:
 
  % python bundlebuilder.py [options] build
  % python buildapp.py [options] build
 
Where "buildapp.py" is a user-supplied setup.py-like script following
this model:
 
  from bundlebuilder import buildapp
  buildapp(<lots-of-keyword-args>)

 
Modules
       
errno
getopt
imp
marshal
os
re
shutil
sys

 
Classes
       
Defaults
BundleBuilder
AppBuilder
exceptions.Exception(exceptions.BaseException)
BundleBuilderError

 
class AppBuilder(BundleBuilder)
    
Method resolution order:
AppBuilder
BundleBuilder
Defaults

Methods defined here:
addPythonFramework(self)
addPythonModules(self)
findDependencies(self)
postProcess(self)
preProcess(self)
report(self)
reportMissing(self)
setup(self)
stripBinaries(self)

Data and other attributes defined here:
argv_emulation = 0
excludeModules = []
executable = None
iconfile = None
includeModules = []
includePackages = []
mainprogram = None
maybeMissingModules = []
missingModules = []
nibname = None
platform = 'MacOS'
pymodules = []
python = None
semi_standalone = 0
standalone = 0
strip = 0
symlink_exec = 0
type = 'APPL'
use_zipimport = True

Methods inherited from BundleBuilder:
build(self)
Build the bundle.
message(self, msg, level=0)

Data and other attributes inherited from BundleBuilder:
builddir = 'build'
bundle_id = None
creator = None
destroot = ''
files = []
libs = []
name = None
plist = {'CFBundleInfoDictionaryVersion': '6.0', 'CFBundleDevelopmentRegion': 'English'}
resources = []
symlink = 0
verbosity = 1

Methods inherited from Defaults:
__init__(self, **kwargs)

 
class BundleBuilder(Defaults)
    BundleBuilder is a barebones class for assembling bundles. It
knows nothing about executables or icons, it only copies files
and creates the PkgInfo and Info.plist files.
 
  Methods defined here:
build(self)
Build the bundle.
message(self, msg, level=0)
postProcess(self)
Hook for subclasses.
preProcess(self)
Hook for subclasses.
report(self)
setup(self)

Data and other attributes defined here:
builddir = 'build'
bundle_id = None
creator = None
destroot = ''
files = []
libs = []
name = None
plist = {'CFBundleInfoDictionaryVersion': '6.0', 'CFBundleDevelopmentRegion': 'English'}
resources = []
symlink = 0
type = 'BNDL'
verbosity = 1

Methods inherited from Defaults:
__init__(self, **kwargs)

 
class BundleBuilderError(exceptions.Exception)
    
Method resolution order:
BundleBuilderError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
Functions
       
buildapp(**kwargs)

 
Data
        __all__ = ['BundleBuilder', 'BundleBuilderError', 'AppBuilder', 'buildapp']
__warningregistry__ = {('The Plist class is deprecated, use the readPlist() and writePlist() functions instead', <type 'exceptions.PendingDeprecationWarning'>, 86): True}