Commit f7a55074 authored by Greg Ward's avatar Greg Ward

Use Distribution method 'dump_option_dicts()' for debugging output, and only

do so if DEBUG is true.
parent 67392584
...@@ -70,8 +70,6 @@ def setup (**attrs): ...@@ -70,8 +70,6 @@ def setup (**attrs):
object. object.
""" """
from pprint import pprint # for debugging output
# Determine the distribution class -- either caller-supplied or # Determine the distribution class -- either caller-supplied or
# our Distribution (see below). # our Distribution (see below).
klass = attrs.get ('distclass') klass = attrs.get ('distclass')
...@@ -88,8 +86,9 @@ def setup (**attrs): ...@@ -88,8 +86,9 @@ def setup (**attrs):
# the setup script, but be overridden by the command line. # the setup script, but be overridden by the command line.
dist.parse_config_files() dist.parse_config_files()
if DEBUG:
print "options (after parsing config files):" print "options (after parsing config files):"
pprint (dist.command_options) dist.dump_option_dicts()
# Parse the command line; any command-line errors are the end user's # Parse the command line; any command-line errors are the end user's
# fault, so turn them into SystemExit to suppress tracebacks. # fault, so turn them into SystemExit to suppress tracebacks.
...@@ -99,8 +98,9 @@ def setup (**attrs): ...@@ -99,8 +98,9 @@ def setup (**attrs):
sys.stderr.write (usage + "\n") sys.stderr.write (usage + "\n")
raise SystemExit, "error: %s" % msg raise SystemExit, "error: %s" % msg
if DEBUG:
print "options (after parsing command line):" print "options (after parsing command line):"
pprint (dist.command_options) dist.dump_option_dicts()
# And finally, run all the commands found on the command line. # And finally, run all the commands found on the command line.
if ok: if ok:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment