[Python-checkins] CVS: distutils/distutils core.py,1.34,1.35

Greg Ward python-dev@python.org
Mon, 22 May 2000 20:54:19 -0700


Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13648

Modified Files:
	core.py 
Log Message:
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.

Index: core.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/core.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** core.py	2000/05/23 01:43:08	1.34
--- core.py	2000/05/23 03:54:16	1.35
***************
*** 8,12 ****
  # created 1999/03/01, Greg Ward
  
! __revision__ = "$Id: core.py,v 1.34 2000/05/23 01:43:08 gward Exp $"
  
  import sys, os
--- 8,12 ----
  # created 1999/03/01, Greg Ward
  
! __revision__ = "$Id: core.py,v 1.35 2000/05/23 03:54:16 gward Exp $"
  
  import sys, os
***************
*** 60,63 ****
--- 60,65 ----
         command object."""
  
+     from pprint import pprint               # for debugging output
+ 
      # Determine the distribution class -- either caller-supplied or
      # our Distribution (see below).
***************
*** 76,79 ****
--- 78,84 ----
      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.
***************
*** 83,86 ****
--- 88,94 ----
          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.