summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cmd.py
Commit message (Collapse)AuthorAgeFilesLines
* fix typoFred Drake2004-06-181-1/+1
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* announce(): use the level argument to control the log level.Guido van Rossum2003-02-201-1/+1
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-3/+0
| | | | is often out of date
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-111-1/+1
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-29/+22
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Whitespace normalization.Fred Drake2001-12-061-10/+10
|
* Flush output more aggressively. This makes things look better ifNeil Schemenauer2001-08-291-0/+2
| | | | the setup script is running from inside Vim.
* Back out conversion to string methods; the Distutils is intended to workAndrew M. Kuchling2001-03-221-3/+3
| | | | with 1.5.2
* String method conversion.Eric S. Raymond2001-02-091-3/+3
|
* Standardize whitespace in function calls.Greg Ward2000-09-261-27/+27
|
* In 'reinitialize_subcommand()', pass 'reinit_subcommands' flag on to theGreg Ward2000-09-161-2/+3
| | | | real implementation in Distribution.
* Added the "sub-command" machinery to formalize the notion of "commandGreg Ward2000-09-161-0/+31
| | | | | | | families" -- eg. install and its brood, build and its brood, and so forth. Specifically: added the 'sub_commands' class attribute (empty list, sub- classes must override it) and a comment describing it, and the 'get_sub_commands()' method.
* Fix references to functions formerly imported from 'util'.Greg Ward2000-08-131-20/+23
|
* Replaced 'execute()' method with a thin wrapper around 'util.execute()'.Greg Ward2000-08-021-25/+1
|
* Fixed a grab-bag of typos spotted by Rob Hooft.Greg Ward2000-07-271-1/+1
|
* typos fixed by Rob HooftJeremy Hylton2000-06-281-1/+1
|
* Added 'debug_print()' method (driven by DEBUG global from distutils.core).Greg Ward2000-06-081-0/+9
|
* Added the 'ensure_*' methods from bdist_rpm; refactored 'ensure_filename()'Greg Ward2000-06-041-1/+72
| | | | and added 'ensure_dirname()'.
* Reformatted and updated many docstrings.Greg Ward2000-06-021-83/+85
|
* Added 'reinitialize_command()' method -- delegated to Distribution instance.Greg Ward2000-06-011-2/+6
| | | | Ensure 'make_archive()' method returns archive filename.
* Added 'dump_options()' for debugging output.Greg Ward2000-05-281-0/+15
|
* Some far-reaching naming changes:Greg Ward2000-05-271-19/+11
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Added comment to remind us of the (temporary?) obsolescense of theGreg Ward2000-05-251-0/+5
| | | | 'install_misc' class.
* Use 'get_command_obj()' instead of 'find_command_obj()'.Greg Ward2000-05-231-3/+3
|
* 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.