mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
Make setup.py less chatty by default.
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.
This commit is contained in:
parent
6fa82a3477
commit
cd8a1148e1
32 changed files with 260 additions and 313 deletions
|
@ -100,7 +100,11 @@ def setup (**attrs):
|
|||
try:
|
||||
_setup_distribution = dist = klass(attrs)
|
||||
except DistutilsSetupError, msg:
|
||||
raise SystemExit, "error in setup script: %s" % msg
|
||||
if attrs.has_key('name'):
|
||||
raise SystemExit, "error in %s setup command: %s" % \
|
||||
(attrs['name'], msg)
|
||||
else:
|
||||
raise SystemExit, "error in setup command: %s" % msg
|
||||
|
||||
if _setup_stop_after == "init":
|
||||
return dist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue