summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Marching towards full support of config files: thoroughly overhauled theGreg Ward2000-05-231-209/+238
| | | | | | | | | | | | | | | | | | command-line parsing code, splitting it up into several methods (new methods: '_parse_command_opts()', '_show_help()') and making it put options into the 'command_options' dictionary rather than instantiating command objects and putting them there. Lots of other little changes: * merged 'find_command_class()' and 'create_command_obj()' and called the result 'get_command_class()' * renamed 'find_command_obj()' to 'get_command_obj()', and added command object creation and maintenance of the command object cache to its responsibilities (taken over from 'create_command_obj()') * parse config files one-at-a-time, so we can keep track of the filename for later error reporting * tweaked some help messages * fixed up many obsolete comments and docstrings
* Added 'has_scripts()', 'has_data_files()' methods.Greg Ward2000-05-201-0/+6
|
* Added missing import.Greg Ward2000-05-201-0/+1
|
* List data files are listed in the Distribution attribute 'data_files',Gregory P. Smith2000-05-131-1/+1
| | | | rather than 'data'.
* Patch from Bastien Kleineidam:Gregory P. Smith2000-05-121-0/+2
| | | | | | adds the 'install_data' and 'install_scripts' commands; these two are trivial thanks to the 'install_misc' base class in cmd.py. (Minor tweaks and commentary by me; the code is untested so far.)
* Preliminary support for config files:Gregory P. Smith2000-05-121-12/+82
| | | | | | - added 'find_config_files()' and 'parse_config_files()' methods - added 'command_options' attribute Comment/docstring updates.
* Got rid of several little-used and not-very-useful methods: 'get_option()',Greg Ward2000-05-071-47/+2
| | | | 'get_options()', 'get_command_option()', 'get_command_options()'.
* Harry Henry Gebel: add 'long_description' to DistributionMetadata.Greg Ward2000-04-261-1/+7
|
* Fix how we generate the meta-data query methods to include 'get_fullname()'Greg Ward2000-04-221-3/+5
| | | | and the other "composite meta-data" methods.
* Fixed the '--license' option so it's officially an alias for '--licence',Greg Ward2000-04-211-4/+1
| | | | and now actually works.
* Patch, originally from Bastian Kleineidam and savagely mutilated by me,Greg Ward2000-04-211-50/+193
| | | | | | | | | | | | | | | | | to add the "display metadata" options: --name, --version, --author, and so forth. Main changes: * added 'display_options' class attribute to list all the "display only" options (--help-commands plus the metadata options) * added DistributionMetadata class as a place to put the actual metadata information from the setup script (not to be confused with the metadata display options); the logic dealing with metadata (eg. return self.name or "UNKNOWN") is now in this class * changed 'parse_command_line()' to use the new OO interface provided by fancy_getopt, mainly so we can get at the original order of options on the command line, so we can print multiple lines of distribution meta-data in the order specified by the user * added 'handle_display_options()' to handle display-only options Also fixed some crufty old comments/docstrings.
* Cleaned up/simplified error-handling:Greg Ward2000-04-151-27/+9
| | | | | | | | | | | | | - DistutilsOptionError is now documented as it's actually used, ie. to indicate bogus option values (usually user options, eg. from the command-line) - added DistutilsSetupError to indicate errors that definitely arise in the setup script - got rid of DistutilsValueError, and changed all usage of it to either DistutilsSetupError or ValueError as appropriate - simplified a bunch of option get/set methods in Command and Distribution classes -- just pass on AttributeError most of the time, rather than turning it into something else
* Removed global '--force' option -- just too vague a concept to be applicableGreg Ward2000-04-101-3/+0
| | | | | | to all commands in the same way. Several Command methods now either expect 'self.force' to be defined, or check if it is defined and assume it's false if not.
* Add missing import of 'usage' string.Greg Ward2000-04-061-2/+2
|
* Reorganization: moved the Distribution class from core.py to dist.py, andGreg Ward2000-04-041-0/+567
the Command class from core.py to cmd.py. No other code needs changing though; distutils.core still provides the Command and Distribution classes, although indirectly now.