Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
distutils.tests.test_dist.TestDistribution Class Reference
Inheritance diagram for distutils.tests.test_dist.TestDistribution:
Inheritance graph
[legend]
Collaboration diagram for distutils.tests.test_dist.TestDistribution:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def find_config_files
def get_option_dict
def dump_option_dicts
def parse_config_files
def parse_command_line
def finalize_options
def handle_display_options
def print_command_list
def print_commands
def get_command_list
def get_command_packages
def get_command_class
def get_command_obj
def reinitialize_command
def announce
def run_commands
def run_command
def has_pure_modules
def has_ext_modules
def has_c_libraries
def has_modules
def has_headers
def has_scripts
def has_data_files
def is_pure

Public Attributes

 verbose
 dry_run
 help
 metadata
 cmdclass
 command_packages
 script_name
 script_args
 command_options
 dist_files
 packages
 package_data
 package_dir
 py_modules
 libraries
 headers
 ext_modules
 ext_package
 include_dirs
 extra_path
 scripts
 data_files
 password
 command_obj
 have_run
 commands

Static Public Attributes

list global_options
string common_usage
list display_options
list display_option_names = [translate_longopt(x[0]) for x in display_options]
dictionary negative_opt = {'quiet': 'verbose'}

Detailed Description

Distribution subclasses that avoids the default search for
configuration files.

The ._config_files attribute must be set before
.parse_config_files() is called.

Definition at line 27 of file test_dist.py.


Member Function Documentation

def distutils.dist.Distribution.announce (   self,
  msg,
  level = log.INFO 
) [inherited]

Definition at line 908 of file dist.py.

00908 
00909     def announce(self, msg, level=log.INFO):
00910         log.log(level, msg)

Here is the caller graph for this function:

def distutils.dist.Distribution.dump_option_dicts (   self,
  header = None,
  commands = None,
  indent = "" 
) [inherited]

Definition at line 274 of file dist.py.

00274 
00275     def dump_option_dicts(self, header=None, commands=None, indent=""):
00276         from pprint import pformat
00277 
00278         if commands is None:             # dump all command option dicts
00279             commands = sorted(self.command_options.keys())
00280 
00281         if header is not None:
00282             self.announce(indent + header)
00283             indent = indent + "  "
00284 
00285         if not commands:
00286             self.announce(indent + "no commands known yet")
00287             return
00288 
00289         for cmd_name in commands:
00290             opt_dict = self.command_options.get(cmd_name)
00291             if opt_dict is None:
00292                 self.announce(indent +
00293                               "no option dict for '%s' command" % cmd_name)
00294             else:
00295                 self.announce(indent +
00296                               "option dict for '%s' command:" % cmd_name)
00297                 out = pformat(opt_dict)
00298                 for line in out.split('\n'):
00299                     self.announce(indent + "  " + line)

Here is the call graph for this function:

Set final values for all the options on the Distribution
instance, analogous to the .finalize_options() method of Command
objects.

Definition at line 559 of file dist.py.

00559 
00560     def finalize_options(self):
00561         """Set final values for all the options on the Distribution
00562         instance, analogous to the .finalize_options() method of Command
00563         objects.
00564         """
00565         for attr in ('keywords', 'platforms'):
00566             value = getattr(self.metadata, attr)
00567             if value is None:
00568                 continue
00569             if isinstance(value, str):
00570                 value = [elm.strip() for elm in value.split(',')]
00571                 setattr(self.metadata, attr, value)

Here is the call graph for this function:

Find as many configuration files as should be processed for this
platform, and return a list of filenames in the order in which they
should be parsed.  The filenames returned are guaranteed to exist
(modulo nasty race conditions).

There are three possible config files: distutils.cfg in the
Distutils installation directory (ie. where the top-level
Distutils __inst__.py file lives), a file in the user's home
directory named .pydistutils.cfg on Unix and pydistutils.cfg
on Windows/Mac, and setup.cfg in the current directory.

Reimplemented from distutils.dist.Distribution.

Definition at line 35 of file test_dist.py.

00035 
00036     def find_config_files(self):
00037         return self._config_files
00038 

def distutils.dist.Distribution.get_command_class (   self,
  command 
) [inherited]
Return the class that implements the Distutils command named by
'command'.  First we check the 'cmdclass' dictionary; if the
command is mentioned there, we fetch the class object from the
dictionary and return it.  Otherwise we load the command module
("distutils.command." + command) and fetch the command class from
the module.  The loaded class is also stored in 'cmdclass'
to speed future calls to 'get_command_class()'.

Raises DistutilsModuleError if the expected module could not be
found, or if that module does not define the expected class.

Definition at line 758 of file dist.py.

00758 
00759     def get_command_class(self, command):
00760         """Return the class that implements the Distutils command named by
00761         'command'.  First we check the 'cmdclass' dictionary; if the
00762         command is mentioned there, we fetch the class object from the
00763         dictionary and return it.  Otherwise we load the command module
00764         ("distutils.command." + command) and fetch the command class from
00765         the module.  The loaded class is also stored in 'cmdclass'
00766         to speed future calls to 'get_command_class()'.
00767 
00768         Raises DistutilsModuleError if the expected module could not be
00769         found, or if that module does not define the expected class.
00770         """
00771         klass = self.cmdclass.get(command)
00772         if klass:
00773             return klass
00774 
00775         for pkgname in self.get_command_packages():
00776             module_name = "%s.%s" % (pkgname, command)
00777             klass_name = command
00778 
00779             try:
00780                 __import__ (module_name)
00781                 module = sys.modules[module_name]
00782             except ImportError:
00783                 continue
00784 
00785             try:
00786                 klass = getattr(module, klass_name)
00787             except AttributeError:
00788                 raise DistutilsModuleError(
00789                       "invalid command '%s' (no class '%s' in module '%s')"
00790                       % (command, klass_name, module_name))
00791 
00792             self.cmdclass[command] = klass
00793             return klass
00794 
00795         raise DistutilsModuleError("invalid command '%s'" % command)

Here is the call graph for this function:

Here is the caller graph for this function:

Get a list of (command, description) tuples.
The list is divided into "standard commands" (listed in
distutils.command.__all__) and "extra commands" (mentioned in
self.cmdclass, but not a standard command).  The descriptions come
from the command class attribute 'description'.

Definition at line 712 of file dist.py.

00712 
00713     def get_command_list(self):
00714         """Get a list of (command, description) tuples.
00715         The list is divided into "standard commands" (listed in
00716         distutils.command.__all__) and "extra commands" (mentioned in
00717         self.cmdclass, but not a standard command).  The descriptions come
00718         from the command class attribute 'description'.
00719         """
00720         # Currently this is only used on Mac OS, for the Mac-only GUI
00721         # Distutils interface (by Jack Jansen)
00722         import distutils.command
00723         std_commands = distutils.command.__all__
00724         is_std = {}
00725         for cmd in std_commands:
00726             is_std[cmd] = 1
00727 
00728         extra_commands = []
00729         for cmd in self.cmdclass.keys():
00730             if not is_std.get(cmd):
00731                 extra_commands.append(cmd)
00732 
00733         rv = []
00734         for cmd in (std_commands + extra_commands):
00735             klass = self.cmdclass.get(cmd)
00736             if not klass:
00737                 klass = self.get_command_class(cmd)
00738             try:
00739                 description = klass.description
00740             except AttributeError:
00741                 description = "(no description available)"
00742             rv.append((cmd, description))
00743         return rv

Here is the call graph for this function:

def distutils.dist.Distribution.get_command_obj (   self,
  command,
  create = 1 
) [inherited]
Return the command object for 'command'.  Normally this object
is cached on a previous call to 'get_command_obj()'; if no command
object for 'command' is in the cache, then we either create and
return it (if 'create' is true) or return None.

Definition at line 796 of file dist.py.

00796 
00797     def get_command_obj(self, command, create=1):
00798         """Return the command object for 'command'.  Normally this object
00799         is cached on a previous call to 'get_command_obj()'; if no command
00800         object for 'command' is in the cache, then we either create and
00801         return it (if 'create' is true) or return None.
00802         """
00803         cmd_obj = self.command_obj.get(command)
00804         if not cmd_obj and create:
00805             if DEBUG:
00806                 self.announce("Distribution.get_command_obj(): " \
00807                               "creating '%s' command object" % command)
00808 
00809             klass = self.get_command_class(command)
00810             cmd_obj = self.command_obj[command] = klass(self)
00811             self.have_run[command] = 0
00812 
00813             # Set any options that were supplied in config files
00814             # or on the command line.  (NB. support for error
00815             # reporting is lame here: any errors aren't reported
00816             # until 'finalize_options()' is called, which means
00817             # we won't report the source of the error.)
00818             options = self.command_options.get(command)
00819             if options:
00820                 self._set_command_options(cmd_obj, options)
00821 
00822         return cmd_obj

Here is the call graph for this function:

Here is the caller graph for this function:

Return a list of packages from which commands are loaded.

Definition at line 746 of file dist.py.

00746 
00747     def get_command_packages(self):
00748         """Return a list of packages from which commands are loaded."""
00749         pkgs = self.command_packages
00750         if not isinstance(pkgs, list):
00751             if pkgs is None:
00752                 pkgs = ''
00753             pkgs = [pkg.strip() for pkg in pkgs.split(',') if pkg != '']
00754             if "distutils.command" not in pkgs:
00755                 pkgs.insert(0, "distutils.command")
00756             self.command_packages = pkgs
00757         return pkgs

Here is the caller graph for this function:

def distutils.dist.Distribution.get_option_dict (   self,
  command 
) [inherited]
Get the option dictionary for a given command.  If that
command's option dictionary hasn't been created yet, then create it
and return the new dictionary; otherwise, return the existing
option dictionary.

Definition at line 263 of file dist.py.

00263 
00264     def get_option_dict(self, command):
00265         """Get the option dictionary for a given command.  If that
00266         command's option dictionary hasn't been created yet, then create it
00267         and return the new dictionary; otherwise, return the existing
00268         option dictionary.
00269         """
00270         dict = self.command_options.get(command)
00271         if dict is None:
00272             dict = self.command_options[command] = {}
00273         return dict

Here is the caller graph for this function:

def distutils.dist.Distribution.handle_display_options (   self,
  option_order 
) [inherited]
If there were any non-global "display-only" options
(--help-commands or the metadata display options) on the command
line, display the requested info and return true; else return
false.

Definition at line 622 of file dist.py.

00622 
00623     def handle_display_options(self, option_order):
00624         """If there were any non-global "display-only" options
00625         (--help-commands or the metadata display options) on the command
00626         line, display the requested info and return true; else return
00627         false.
00628         """
00629         from distutils.core import gen_usage
00630 
00631         # User just wants a list of commands -- we'll print it out and stop
00632         # processing now (ie. if they ran "setup --help-commands foo bar",
00633         # we ignore "foo bar").
00634         if self.help_commands:
00635             self.print_commands()
00636             print('')
00637             print(gen_usage(self.script_name))
00638             return 1
00639 
00640         # If user supplied any of the "display metadata" options, then
00641         # display that metadata in the order in which the user supplied the
00642         # metadata options.
00643         any_display_options = 0
00644         is_display_option = {}
00645         for option in self.display_options:
00646             is_display_option[option[0]] = 1
00647 
00648         for (opt, val) in option_order:
00649             if val and is_display_option.get(opt):
00650                 opt = translate_longopt(opt)
00651                 value = getattr(self.metadata, "get_"+opt)()
00652                 if opt in ['keywords', 'platforms']:
00653                     print(','.join(value))
00654                 elif opt in ('classifiers', 'provides', 'requires',
00655                              'obsoletes'):
00656                     print('\n'.join(value))
00657                 else:
00658                     print(value)
00659                 any_display_options = 1
00660 
00661         return any_display_options

Here is the call graph for this function:

def distutils.dist.Distribution.has_c_libraries (   self) [inherited]

Definition at line 948 of file dist.py.

00948 
00949     def has_c_libraries(self):
00950         return self.libraries and len(self.libraries) > 0

Here is the caller graph for this function:

def distutils.dist.Distribution.has_data_files (   self) [inherited]

Definition at line 960 of file dist.py.

00960 
00961     def has_data_files(self):
00962         return self.data_files and len(self.data_files) > 0

def distutils.dist.Distribution.has_ext_modules (   self) [inherited]

Definition at line 945 of file dist.py.

00945 
00946     def has_ext_modules(self):
00947         return self.ext_modules and len(self.ext_modules) > 0

Here is the caller graph for this function:

def distutils.dist.Distribution.has_headers (   self) [inherited]

Definition at line 954 of file dist.py.

00954 
00955     def has_headers(self):
00956         return self.headers and len(self.headers) > 0

def distutils.dist.Distribution.has_modules (   self) [inherited]

Definition at line 951 of file dist.py.

00951 
00952     def has_modules(self):
00953         return self.has_pure_modules() or self.has_ext_modules()

Here is the call graph for this function:

Definition at line 942 of file dist.py.

00942 
00943     def has_pure_modules(self):
00944         return len(self.packages or self.py_modules or []) > 0

Here is the caller graph for this function:

def distutils.dist.Distribution.has_scripts (   self) [inherited]

Definition at line 957 of file dist.py.

00957 
00958     def has_scripts(self):
00959         return self.scripts and len(self.scripts) > 0

def distutils.dist.Distribution.is_pure (   self) [inherited]

Definition at line 963 of file dist.py.

00963 
00964     def is_pure(self):
00965         return (self.has_pure_modules() and
00966                 not self.has_ext_modules() and
00967                 not self.has_c_libraries())

Here is the call graph for this function:

Parse the setup script's command line, taken from the
'script_args' instance attribute (which defaults to 'sys.argv[1:]'
-- see 'setup()' in core.py).  This list is first processed for
"global options" -- options that set attributes of the Distribution
instance.  Then, it is alternately scanned for Distutils commands
and options for that command.  Each new command terminates the
options for the previous command.  The allowed options for a
command are determined by the 'user_options' attribute of the
command class -- thus, we have to be able to load command classes
in order to parse the command line.  Any error in that 'options'
attribute raises DistutilsGetoptError; any error on the
command-line raises DistutilsArgError.  If no Distutils commands
were found on the command line, raises DistutilsArgError.  Return
true if command-line was successfully parsed and we should carry
on with executing commands; false if no errors but we shouldn't
execute commands (currently, this only happens if user asks for
help).

Definition at line 389 of file dist.py.

00389 
00390     def parse_command_line(self):
00391         """Parse the setup script's command line, taken from the
00392         'script_args' instance attribute (which defaults to 'sys.argv[1:]'
00393         -- see 'setup()' in core.py).  This list is first processed for
00394         "global options" -- options that set attributes of the Distribution
00395         instance.  Then, it is alternately scanned for Distutils commands
00396         and options for that command.  Each new command terminates the
00397         options for the previous command.  The allowed options for a
00398         command are determined by the 'user_options' attribute of the
00399         command class -- thus, we have to be able to load command classes
00400         in order to parse the command line.  Any error in that 'options'
00401         attribute raises DistutilsGetoptError; any error on the
00402         command-line raises DistutilsArgError.  If no Distutils commands
00403         were found on the command line, raises DistutilsArgError.  Return
00404         true if command-line was successfully parsed and we should carry
00405         on with executing commands; false if no errors but we shouldn't
00406         execute commands (currently, this only happens if user asks for
00407         help).
00408         """
00409         #
00410         # We now have enough information to show the Macintosh dialog
00411         # that allows the user to interactively specify the "command line".
00412         #
00413         toplevel_options = self._get_toplevel_options()
00414 
00415         # We have to parse the command line a bit at a time -- global
00416         # options, then the first command, then its options, and so on --
00417         # because each command will be handled by a different class, and
00418         # the options that are valid for a particular class aren't known
00419         # until we have loaded the command class, which doesn't happen
00420         # until we know what the command is.
00421 
00422         self.commands = []
00423         parser = FancyGetopt(toplevel_options + self.display_options)
00424         parser.set_negative_aliases(self.negative_opt)
00425         parser.set_aliases({'licence': 'license'})
00426         args = parser.getopt(args=self.script_args, object=self)
00427         option_order = parser.get_option_order()
00428         log.set_verbosity(self.verbose)
00429 
00430         # for display options we return immediately
00431         if self.handle_display_options(option_order):
00432             return
00433         while args:
00434             args = self._parse_command_opts(parser, args)
00435             if args is None:            # user asked for help (and got it)
00436                 return
00437 
00438         # Handle the cases of --help as a "global" option, ie.
00439         # "setup.py --help" and "setup.py --help command ...".  For the
00440         # former, we show global options (--verbose, --dry-run, etc.)
00441         # and display-only options (--name, --version, etc.); for the
00442         # latter, we omit the display-only options and show help for
00443         # each command listed on the command line.
00444         if self.help:
00445             self._show_help(parser,
00446                             display_options=len(self.commands) == 0,
00447                             commands=self.commands)
00448             return
00449 
00450         # Oops, no commands found -- an end-user error
00451         if not self.commands:
00452             raise DistutilsArgError("no commands supplied")
00453 
00454         # All is well: return true
00455         return True

Here is the call graph for this function:

def distutils.dist.Distribution.parse_config_files (   self,
  filenames = None 
) [inherited]

Definition at line 343 of file dist.py.

00343 
00344     def parse_config_files(self, filenames=None):
00345         from configparser import ConfigParser
00346 
00347         if filenames is None:
00348             filenames = self.find_config_files()
00349 
00350         if DEBUG:
00351             self.announce("Distribution.parse_config_files():")
00352 
00353         parser = ConfigParser()
00354         for filename in filenames:
00355             if DEBUG:
00356                 self.announce("  reading %s" % filename)
00357             parser.read(filename)
00358             for section in parser.sections():
00359                 options = parser.options(section)
00360                 opt_dict = self.get_option_dict(section)
00361 
00362                 for opt in options:
00363                     if opt != '__name__':
00364                         val = parser.get(section,opt)
00365                         opt = opt.replace('-', '_')
00366                         opt_dict[opt] = (filename, val)
00367 
00368             # Make the ConfigParser forget everything (so we retain
00369             # the original filenames that options come from)
00370             parser.__init__()
00371 
00372         # If there was a "global" section in the config file, use it
00373         # to set Distribution options.
00374 
00375         if 'global' in self.command_options:
00376             for (opt, (src, val)) in self.command_options['global'].items():
00377                 alias = self.negative_opt.get(opt)
00378                 try:
00379                     if alias:
00380                         setattr(self, alias, not strtobool(val))
00381                     elif opt in ('verbose', 'dry_run'): # ugh!
00382                         setattr(self, opt, strtobool(val))
00383                     else:
00384                         setattr(self, opt, val)
00385                 except ValueError as msg:
00386                     raise DistutilsOptionError(msg)

Here is the call graph for this function:

def distutils.dist.Distribution.print_command_list (   self,
  commands,
  header,
  max_length 
) [inherited]
Print a subset of the list of all commands -- used by
'print_commands()'.

Definition at line 662 of file dist.py.

00662 
00663     def print_command_list(self, commands, header, max_length):
00664         """Print a subset of the list of all commands -- used by
00665         'print_commands()'.
00666         """
00667         print(header + ":")
00668 
00669         for cmd in commands:
00670             klass = self.cmdclass.get(cmd)
00671             if not klass:
00672                 klass = self.get_command_class(cmd)
00673             try:
00674                 description = klass.description
00675             except AttributeError:
00676                 description = "(no description available)"
00677 
00678             print("  %-*s  %s" % (max_length, cmd, description))

Here is the call graph for this function:

Here is the caller graph for this function:

def distutils.dist.Distribution.print_commands (   self) [inherited]
Print out a help message listing all available commands with a
description of each.  The list is divided into "standard commands"
(listed in distutils.command.__all__) and "extra commands"
(mentioned in self.cmdclass, but not a standard command).  The
descriptions come from the command class attribute
'description'.

Definition at line 679 of file dist.py.

00679 
00680     def print_commands(self):
00681         """Print out a help message listing all available commands with a
00682         description of each.  The list is divided into "standard commands"
00683         (listed in distutils.command.__all__) and "extra commands"
00684         (mentioned in self.cmdclass, but not a standard command).  The
00685         descriptions come from the command class attribute
00686         'description'.
00687         """
00688         import distutils.command
00689         std_commands = distutils.command.__all__
00690         is_std = {}
00691         for cmd in std_commands:
00692             is_std[cmd] = 1
00693 
00694         extra_commands = []
00695         for cmd in self.cmdclass.keys():
00696             if not is_std.get(cmd):
00697                 extra_commands.append(cmd)
00698 
00699         max_length = 0
00700         for cmd in (std_commands + extra_commands):
00701             if len(cmd) > max_length:
00702                 max_length = len(cmd)
00703 
00704         self.print_command_list(std_commands,
00705                                 "Standard commands",
00706                                 max_length)
00707         if extra_commands:
00708             print()
00709             self.print_command_list(extra_commands,
00710                                     "Extra commands",
00711                                     max_length)

Here is the call graph for this function:

Here is the caller graph for this function:

def distutils.dist.Distribution.reinitialize_command (   self,
  command,
  reinit_subcommands = 0 
) [inherited]
Reinitializes a command to the state it was in when first
returned by 'get_command_obj()': ie., initialized but not yet
finalized.  This provides the opportunity to sneak option
values in programmatically, overriding or supplementing
user-supplied values from the config files and command line.
You'll have to re-finalize the command object (by calling
'finalize_options()' or 'ensure_finalized()') before using it for
real.

'command' should be a command name (string) or command object.  If
'reinit_subcommands' is true, also reinitializes the command's
sub-commands, as declared by the 'sub_commands' class attribute (if
it has one).  See the "install" command for an example.  Only
reinitializes the sub-commands that actually matter, ie. those
whose test predicates return true.

Returns the reinitialized command object.

Definition at line 867 of file dist.py.

00867 
00868     def reinitialize_command(self, command, reinit_subcommands=0):
00869         """Reinitializes a command to the state it was in when first
00870         returned by 'get_command_obj()': ie., initialized but not yet
00871         finalized.  This provides the opportunity to sneak option
00872         values in programmatically, overriding or supplementing
00873         user-supplied values from the config files and command line.
00874         You'll have to re-finalize the command object (by calling
00875         'finalize_options()' or 'ensure_finalized()') before using it for
00876         real.
00877 
00878         'command' should be a command name (string) or command object.  If
00879         'reinit_subcommands' is true, also reinitializes the command's
00880         sub-commands, as declared by the 'sub_commands' class attribute (if
00881         it has one).  See the "install" command for an example.  Only
00882         reinitializes the sub-commands that actually matter, ie. those
00883         whose test predicates return true.
00884 
00885         Returns the reinitialized command object.
00886         """
00887         from distutils.cmd import Command
00888         if not isinstance(command, Command):
00889             command_name = command
00890             command = self.get_command_obj(command_name)
00891         else:
00892             command_name = command.get_command_name()
00893 
00894         if not command.finalized:
00895             return command
00896         command.initialize_options()
00897         command.finalized = 0
00898         self.have_run[command_name] = 0
00899         self._set_command_options(command)
00900 
00901         if reinit_subcommands:
00902             for sub in command.get_sub_commands():
00903                 self.reinitialize_command(sub, reinit_subcommands)
00904 
00905         return command

Here is the call graph for this function:

Here is the caller graph for this function:

def distutils.dist.Distribution.run_command (   self,
  command 
) [inherited]
Do whatever it takes to run a command (including nothing at all,
if the command has already been run).  Specifically: if we have
already created and run the command named by 'command', return
silently without doing anything.  If the command named by 'command'
doesn't even have a command object yet, create one.  Then invoke
'run()' on that command object (or an existing one).

Definition at line 921 of file dist.py.

00921 
00922     def run_command(self, command):
00923         """Do whatever it takes to run a command (including nothing at all,
00924         if the command has already been run).  Specifically: if we have
00925         already created and run the command named by 'command', return
00926         silently without doing anything.  If the command named by 'command'
00927         doesn't even have a command object yet, create one.  Then invoke
00928         'run()' on that command object (or an existing one).
00929         """
00930         # Already been here, done that? then return silently.
00931         if self.have_run.get(command):
00932             return
00933 
00934         log.info("running %s", command)
00935         cmd_obj = self.get_command_obj(command)
00936         cmd_obj.ensure_finalized()
00937         cmd_obj.run()
00938         self.have_run[command] = 1
00939 

Here is the call graph for this function:

Here is the caller graph for this function:

def distutils.dist.Distribution.run_commands (   self) [inherited]
Run each command that was seen on the setup script command line.
Uses the list of commands found and cache of command objects
created by 'get_command_obj()'.

Definition at line 911 of file dist.py.

00911 
00912     def run_commands(self):
00913         """Run each command that was seen on the setup script command line.
00914         Uses the list of commands found and cache of command objects
00915         created by 'get_command_obj()'.
00916         """
00917         for cmd in self.commands:
00918             self.run_command(cmd)

Here is the call graph for this function:


Member Data Documentation

Definition at line 150 of file dist.py.

Definition at line 205 of file dist.py.

Definition at line 171 of file dist.py.

Definition at line 158 of file dist.py.

Definition at line 421 of file dist.py.

Initial value:
"""\
Common commands: (see '--help-commands' for more)

  setup.py build      will build the package underneath 'build/'
  setup.py install    will install the package
"""

Definition at line 58 of file dist.py.

Definition at line 198 of file dist.py.

list distutils.dist.Distribution.display_option_names = [translate_longopt(x[0]) for x in display_options] [static, inherited]

Definition at line 110 of file dist.py.

Definition at line 66 of file dist.py.

Definition at line 182 of file dist.py.

Definition at line 131 of file dist.py.

Definition at line 193 of file dist.py.

Definition at line 194 of file dist.py.

Definition at line 196 of file dist.py.

Initial value:
[('verbose', 'v', "run verbosely (default)", 1),
                      ('quiet', 'q', "run quietly (turns verbosity off)"),
                      ('dry-run', 'n', "don't actually do anything"),
                      ('help', 'h', "show detailed help message"),
                     ]

Definition at line 50 of file dist.py.

Definition at line 217 of file dist.py.

Definition at line 192 of file dist.py.

Definition at line 132 of file dist.py.

Definition at line 195 of file dist.py.

Definition at line 191 of file dist.py.

Definition at line 141 of file dist.py.

dictionary distutils.dist.Distribution.negative_opt = {'quiet': 'verbose'} [static, inherited]

Definition at line 113 of file dist.py.

Definition at line 188 of file dist.py.

Definition at line 189 of file dist.py.

Definition at line 187 of file dist.py.

Definition at line 199 of file dist.py.

Definition at line 190 of file dist.py.

Definition at line 164 of file dist.py.

Definition at line 163 of file dist.py.

Definition at line 197 of file dist.py.

Definition at line 130 of file dist.py.


The documentation for this class was generated from the following file: