2006-10-30 13:44:42

Ensure that the package attributes are valid and the required fields are provided.

Raise DistutilsSetupError if the stucture is invalid anywhere.

Return the distribution object for 'package'. Normally this object is cached on a previous call to 'get_package_distribution()'; if no distribution object is in the cache, then it is created.

Get the option dictionary for a given package. If that packages's option dictionary hasn't been created yet, then create it and return the new dictionary; otherwise, return the existing option dictionary.

Overrides handle_display_options() to update 'package_defaults' and handle the '--help-packages' option.

Overrides parse_command_line() to validate the '--package' option and to add the command-line options to the default package options.

Overrides parse_config_files() to update 'package_defaults' with any global values from the config files and to parse the package files to populate the 'package_options' dictionary.

Returns a dictionary of the options defined in the package definition 'filename'.

Print out a help message listing all available packages with a description of each. The descriptions come from the package definition's 'description' field.

Overrides run_commands() to handle multiple source packages in a single setup script.

- ['help_packages', 'help_commands', 'name', 'version', 'fullname', 'author', 'author_email', 'maintainer', 'maintainer_email', 'contact', 'contact_email', 'url', 'license', 'licence', 'description', 'long_description', 'platforms', 'classifiers', 'keywords', 'provides', ...]
- [('help-packages', None, 'list all available packages'), ('help-commands', None, 'list all available commands'), ('name', None, 'print package name'), ('version', 'V', 'print package version'), ('fullname', None, 'print <package name>-<version>'), ('author', None, "print the author's name"), ('author-email', None, "print the author's email address"), ('maintainer', None, "print the maintainer's name"), ('maintainer-email', None, "print the maintainer's email address"), ('contact', None, "print the maintainer's name if known, else the author's"), ('contact-email', None, "print the maintainer's email address if known, else the author's"), ('url', None, 'print the URL for this package'), ('license', None, 'print the license of the package'), ('licence', None, 'alias for --license'), ('description', None, 'print the package description'), ('long-description', None, 'print the long package description'), ('platforms', None, 'print the list of platforms'), ('classifiers', None, 'print the list of classifiers'), ('keywords', None, 'print the list of keywords'), ('provides', None, 'print the list of packages/modules provided'), ...]
- [('source-package', 's', 'run as if from a source dist (developer testing)'), ('package=', 'p', 'limit command(s) to a given package')]
None
{'bgen_files': <type 'list'>, 'classifiers': <type 'list'>, 'config_module': <type 'str'>, 'data_files': <type 'list'>, 'description': <type 'str'>, 'devel_files': <type 'list'>, 'doc_files': <type 'list'>, 'download_url': <type 'str'>, 'ext_modules': <type 'list'>, 'headers': <type 'list'>, ...}
_Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 0)