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

Class bdist_msi

cmd.Command --+
              |
             bdist_msi

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.
 
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()'.
 
add_files(self)
 
add_find_python(self)
Adds code to the installer to compute the location of Python.
 
add_scripts(self)
 
add_ui(self)
 
get_installer_filename(self, fullname)

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 a Microsoft Installer (.msi) binary dist...
  user_options = [('bdist-dir=', None, "temporary directory for ...
  boolean_options = ['keep-temp', 'no-target-compile', 'no-targe...

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)

add_find_python(self)

 

Adds code to the installer to compute the location of Python. Properties PYTHON.MACHINE, PYTHON.USER, PYTHONDIR and PYTHON will be set in both the execute and UI sequences; PYTHONDIR will be set from PYTHON.USER if defined, else from PYTHON.MACHINE. PYTHON is PYTHONDIR\python.exe


Class Variable Details [hide private]

description

Value:
"create a Microsoft Installer (.msi) binary distribution"

user_options

Value:
[('bdist-dir=', None, "temporary directory for creating the distributi\
on"), ('keep-temp', 'k', "keep the pseudo-installation tree around aft\
er "+ "creating the distribution archive"), ('target-version=', None, \
"require a specific python version"+ " on the target system"), ('no-ta\
rget-compile', 'c', "do not compile .py to .pyc on the target system")\
, ('no-target-optimize', 'o', "do not compile .py to .pyo (optimized)"\
 "on the target system"), ('dist-dir=', 'd', "directory to put final b\
uilt distributions in"), ('skip-build', None, "skip rebuilding everyth\
...

boolean_options

Value:
['keep-temp', 'no-target-compile', 'no-target-optimize', 'skip-build']