Package distutils :: Package command :: Module bdist_rpm :: Class bdist_rpm
[hide private]
[frames] | no frames]

_ClassType bdist_rpm

cmd.Command --+
              |
             bdist_rpm

Instance Methods [hide private]
 
initialize_options(self)
Set default values for all the options that this command supports.
 
finalize_options(self)
Set final values for all the options that this command supports.
 
finalize_package_data(self)
 
run(self)
A command's raison d'etre: carry out the action it exists to perform, controlled by the options initialized in 'initialize_options()', customized by other commands, the setup script, the command-line, and config files, and finalized in 'finalize_options()'.
 
_dist_path(self, path)
 
_make_spec_file(self)
Generate the text of an RPM spec file and return it as a list of strings (one per line).
 
_format_changelog(self, changelog)
Format the changelog correctly and convert it to a list of strings

Inherited from cmd.Command: __getattr__, __init__, announce, copy_file, copy_tree, debug_print, dump_options, ensure_dirname, ensure_filename, ensure_finalized, ensure_string, ensure_string_list, execute, get_command_name, get_finalized_command, get_sub_commands, make_archive, make_file, mkpath, move_file, reinitialize_command, run_command, set_undefined_options, spawn, warn

Class Variables [hide private]
  description = 'create an RPM distribution'
  user_options = [('bdist-base=', None, 'base directory for crea...
  boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mod...
  negative_opt = {'no-keep-temp': 'keep-temp', 'no-rpm-opt-flags...

Inherited from cmd.Command: sub_commands

Method Details [hide private]

initialize_options(self)

 

Set default values for all the options that this command supports. Note that these defaults may be overridden by other commands, by the setup script, by config files, or by the command-line. Thus, this is not the place to code dependencies between options; generally, 'initialize_options()' implementations are just a bunch of "self.foo = None" assignments.

This method must be implemented by all command classes.

Overrides: cmd.Command.initialize_options
(inherited documentation)

finalize_options(self)

 

Set final values for all the options that this command supports. This is always called as late as possible, ie. after any option assignments from the command-line or from other commands have been done. Thus, this is the place to code option dependencies: if 'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as long as 'foo' still has the same value it was assigned in 'initialize_options()'.

This method must be implemented by all command classes.

Overrides: cmd.Command.finalize_options
(inherited documentation)

run(self)

 

A command's raison d'etre: carry out the action it exists to perform, controlled by the options initialized in 'initialize_options()', customized by other commands, the setup script, the command-line, and config files, and finalized in 'finalize_options()'. All terminal output and filesystem interaction should be done by 'run()'.

This method must be implemented by all command classes.

Overrides: cmd.Command.run
(inherited documentation)

Class Variable Details [hide private]

user_options

Value:
[('bdist-base=',
  None,
  'base directory for creating built distributions'),
 ('rpm-base=',
  None,
  'base directory for creating RPMs (defaults to "rpm" under --bdist-b\
ase; must be specified for RPM 2)'),
 ('dist-dir=', 'd', 'directory to put final RPM files in (and .spec fi\
...

boolean_options

Value:
['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode', 'no-autoreq']

negative_opt

Value:
{'no-keep-temp': 'keep-temp',
 'no-rpm-opt-flags': 'use-rpm-opt-flags',
 'rpm2-mode': 'rpm3-mode'}