Commit 13d20ddb authored by Greg Ward's avatar Greg Ward

Added some debuging output (actually moved here from dist.py) --

dump the Distribution's 'command_options' dict after parsing config files,
and then after parsing the command line.
parent d0f81982
...@@ -59,6 +59,8 @@ def setup (**attrs): ...@@ -59,6 +59,8 @@ def setup (**attrs):
and the command-specific options that became attributes of each and the command-specific options that became attributes of each
command object.""" command 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')
...@@ -75,6 +77,9 @@ def setup (**attrs): ...@@ -75,6 +77,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()
print "options (after parsing config files):"
pprint (dist.command_options)
# 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.
try: try:
...@@ -83,6 +88,9 @@ def setup (**attrs): ...@@ -83,6 +88,9 @@ def setup (**attrs):
sys.stderr.write (usage + "\n") sys.stderr.write (usage + "\n")
raise SystemExit, "error: %s" % msg raise SystemExit, "error: %s" % msg
print "options (after parsing command line):"
pprint (dist.command_options)
# 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:
try: try:
......
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