MakeConfigCommand


Attributes

a default_interactive

1

a default_sysconfigs

[(False, '/home/ianb/.paste/config/sysconfig.py'),
 (False, '/etc/paste/sysconfig.py'),
 (False, '/usr/local/etc/paste/sysconfig.py'),
 (True, 'paste.script.default_sysconfig')]

a default_verbosity

1

a description

'    Note: this is an experimental command, and it will probably change\n    in several ways by the next release.\n\n    make-config is part of a two-phase installation process (the\n    second phase is setup-app).  make-config installs the package\n    (using easy_install) and asks it to create a bare configuration\n    file or directory (possibly filling in defaults from the extra\n    variables you give).\n    '

a group_name

''

a hidden

False

a max_args

None

a max_args_error

'You must provide no more than %(max_args)s arguments'

a min_args

1

a min_args_error

'You must provide at least %(min_args)s arguments'

a parser

<paste.script.bool_optparse.BoolOptionParser instance at 0x8d6fecc>

a required_args

()

a return_code

0

a summary

'Install a package and create a fresh config file/directory'

a takes_config_file

None

a usage

'PACKAGE_NAME [CONFIG_FILE] [VAR=VALUE]'

Methods

f run(self, args) ...

f standard_parser(cls, **kw) ...

f load_sysconfigs(self) ...

f __init__(self, name) ...

f get_sysconfig_option(self, name, default=None) ...

Return the value of the given option in the first sysconfig module in which it is found, or default (None) if not found in any.

f get_sysconfig_options(self, name) ...

Return the option value for the given name in all the sysconfig modules in which is is found ([] if none).

f call_sysconfig_function(self, name, *args, **kw) ...

Call the specified function in the first sysconfig module it is defined in. NameError if no function is found.

f call_sysconfig_functions(self, name, *args, **kw) ...

Call all the named functions in the sysconfig modules, returning a list of the return values.

f sysconfig_install_vars(self, installer) ...

Return the folded results of calling the install_variables() functions.

f get_distribution(self, req) ...

This gets a distribution object, and installs the distribution if required.

f get_installer(self, distro, ep_group, ep_name) ...

f command(self) ...

f show_info(self) ...

f check_config_file(self) ...

f run_setup(self, filename) ...

f run_editor(self) ...

See the source for more information.