summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cmd.py
Commit message (Collapse)AuthorAgeFilesLines
...
* In 'install_misc': 'self.outfiles' defaults to the empty list, so we don'tGregory P. Smith2000-05-131-1/+1
| | | | have to worry about "or []" in 'get_outputs()'.
* In 'install_misc' class:Gregory P. Smith2000-05-121-10/+7
| | | | | | - renamed '_copydata()' to 'copy_files()' - changed it to record complete output filenames - dropped '_outputdata()' in favour of much simpler 'get_outputs()'
* Patch from Bastien Kleineidam:Gregory P. Smith2000-05-121-0/+30
| | | | | | 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.)
* Got rid of some little-used and not-very-useful methods: 'get_option()' andGreg Ward2000-05-071-44/+3
| | | | 'get_options()'.
* Cleaned up/simplified error-handling:Greg Ward2000-04-151-28/+14
| | | | | | | | | | | | | - 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
* Define 'self.force' in the constructor and remove the hack in '__getattr__()'Greg Ward2000-04-101-5/+6
| | | | to account for it not being defined in the constructor.
* Added a check for the 'force' attribute in '__getattr__()' -- better thanGreg Ward2000-04-101-6/+10
| | | | | | crashing when self.force not defined. Revise 'copy_file()' and 'copy_tree()' docstrings accordingly. Remove 'hasattr()' check for 'self.force' from 'make_file()'.
* Removed global '--force' option -- just too vague a concept to be applicableGreg Ward2000-04-101-10/+14
| | | | | | 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.
* Added (currently) pointless and trivial main body (for future tests).Greg Ward2000-04-091-0/+4
|
* Reorganization: moved the Distribution class from core.py to dist.py, andGreg Ward2000-04-041-0/+390
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.