Lines Matching full:command
3 Provides the Command class, the base class for the command classes
4 in the distutils.command package.
14 class Command:
15 """Abstract base class for defining command classes, the "worker bees"
16 of the Distutils. A useful analogy for command classes is to think of
20 must be defined by every command class. The distinction between the
22 world (command line, config file, ...), and any options dependent on
27 command class.
35 # tuples, where 'predicate' is a method of the parent command that
36 # determines whether the corresponding command is applicable in the
39 # that command is always applicable.
43 # defined. The canonical example is the "install" command.
50 """Create and initialize a new Command object. Most importantly,
52 initializer and depends on the actual command being
60 if self.__class__ is Command:
61 raise RuntimeError, "Command is an abstract class"
66 # Per-command versions of the global flags, so that the user can
67 # customize Distutils' behaviour command-by-command and let some
86 # The 'help' flag is just used for command-line parsing, so
115 # setup script, by options from config file(s), or by command-line
120 # (command-line, option file, etc.) has been processed
122 # run the command: do whatever it is we're here to do,
123 # controlled by the command's various option values
126 """Set default values for all the options that this command
129 command-line. Thus, this is not the place to code dependencies
133 This method must be implemented by all command classes.
139 """Set final values for all the options that this command supports.
141 assignments from the command-line or from other commands have been
147 This method must be implemented by all command classes.
156 header = "command options for '%s':" % self.get_command_name()
168 """A command's raison d'etre: carry out the action it exists to
171 script, the command-line, and config files, and finalized in
175 This method must be implemented by all command classes.
203 # option into conformance, raise DistutilsOptionError. Thus, command
282 option values in some other command object. "Undefined" here means
286 options that depend on some other command rather than another
287 option of the same command. 'src_cmd' is the other command from
288 which option values will be taken (a command object will be created
291 'src_option' in the 'src_cmd' command object, and copy it to
292 'dst_option' in the current command object".
305 def get_finalized_command(self, command, create=1):
307 (create if necessary and 'create' is true) the command object for
308 'command', call its 'ensure_finalized()' method, and return the
309 finalized command object.
311 cmd_obj = self.distribution.get_command_obj(command, create)
317 def reinitialize_command(self, command, reinit_subcommands=0):
319 command, reinit_subcommands)
321 def run_command(self, command):
322 """Run some other command: uses the 'run_command()' method of
323 Distribution, which creates and finalizes the command object if
326 self.distribution.run_command(command)
333 run for the current distribution. Return a list of command names.
384 """Spawn an external command respecting dry-run flag."""
400 files listed in 'infiles'. If the command defined 'self.force',
401 and it is true, then the command is unconditionally run -- does no
433 class install_misc(Command):