[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - setup.py:1.13

Fred L. Drake, Jr. fred at zope.com
Tue Apr 6 17:48:11 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv15138

Modified Files:
	setup.py 
Log Message:
when piping the debugging output into a pager, don't scream when the
pager exits before reading everything


=== Packages/zpkgtools/zpkgtools/setup.py 1.12 => 1.13 ===
--- Packages/zpkgtools/zpkgtools/setup.py:1.12	Tue Apr  6 12:32:51 2004
+++ Packages/zpkgtools/zpkgtools/setup.py	Tue Apr  6 17:48:10 2004
@@ -13,6 +13,7 @@
 ##############################################################################
 """Generator for distutils setup.py files."""
 
+import errno
 import logging
 import os
 import posixpath
@@ -51,7 +52,11 @@
                 del kwargs[name]
         if "--debug" in sys.argv:
             import pprint
-            pprint.pprint(kwargs)
+            try:
+                pprint.pprint(kwargs)
+            except IOError, e:
+                if e.errno != errno.EPIPE:
+                    raise
         else:
             root_logger = logging.getLogger()
             if not root_logger.handlers:




More information about the Zope-CVS mailing list