diff options
author | Greg Ward <gward@python.net> | 2000-05-23 03:54:16 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-05-23 03:54:16 (GMT) |
commit | 77751c0b4903470bdd630dac25270b21670323ff (patch) | |
tree | 1ecab04a7d75448429d61d619007623744f3f5fe /Lib/distutils/core.py | |
parent | 981f7368f68a03e416f946c6860197bc21bf743c (diff) | |
download | cpython-77751c0b4903470bdd630dac25270b21670323ff.zip cpython-77751c0b4903470bdd630dac25270b21670323ff.tar.gz cpython-77751c0b4903470bdd630dac25270b21670323ff.tar.bz2 |
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.
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r-- | Lib/distutils/core.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 3eeba1d..e22db93 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -59,6 +59,8 @@ def setup (**attrs): and the command-specific options that became attributes of each command object.""" + from pprint import pprint # for debugging output + # Determine the distribution class -- either caller-supplied or # our Distribution (see below). klass = attrs.get ('distclass') @@ -75,6 +77,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) + # Parse the command line; any command-line errors are the end user's # fault, so turn them into SystemExit to suppress tracebacks. try: @@ -83,6 +88,9 @@ def setup (**attrs): sys.stderr.write (usage + "\n") 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. if ok: try: |