diff options
author | Greg Ward <gward@python.net> | 2000-06-02 01:55:36 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-02 01:55:36 (GMT) |
commit | f7a55074851e49c12bc6e533a3bf564ff7408637 (patch) | |
tree | 5c3378f52580b55b7cdf4451de7a9c898ef70124 /Lib/distutils/core.py | |
parent | 673925842eef8faf8f3dc1c01b3e22288bcbf475 (diff) | |
download | cpython-f7a55074851e49c12bc6e533a3bf564ff7408637.zip cpython-f7a55074851e49c12bc6e533a3bf564ff7408637.tar.gz cpython-f7a55074851e49c12bc6e533a3bf564ff7408637.tar.bz2 |
Use Distribution method 'dump_option_dicts()' for debugging output, and only
do so if DEBUG is true.
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r-- | Lib/distutils/core.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 9e390ac..2bad10e 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -70,8 +70,6 @@ def setup (**attrs): object. """ - from pprint import pprint # for debugging output - # Determine the distribution class -- either caller-supplied or # our Distribution (see below). klass = attrs.get ('distclass') @@ -88,8 +86,9 @@ def setup (**attrs): # the setup script, but be overridden by the command line. dist.parse_config_files() - print "options (after parsing config files):" - pprint (dist.command_options) + if DEBUG: + print "options (after parsing config files):" + dist.dump_option_dicts() # Parse the command line; any command-line errors are the end user's # fault, so turn them into SystemExit to suppress tracebacks. @@ -99,8 +98,9 @@ def setup (**attrs): sys.stderr.write (usage + "\n") raise SystemExit, "error: %s" % msg - print "options (after parsing command line):" - pprint (dist.command_options) + if DEBUG: + print "options (after parsing command line):" + dist.dump_option_dicts() # And finally, run all the commands found on the command line. if ok: |