[Zope3-checkins] CVS: Zope3 - test.py:1.29

Barry Warsaw barry@wooz.org
Thu, 19 Dec 2002 18:57:50 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv23829

Modified Files:
	test.py 
Log Message:
Add the -q flag to build but only in Python 2.2 (Python 2.3 is
betterly verbositic).


=== Zope3/test.py 1.28 => 1.29 ===
--- Zope3/test.py:1.28	Thu Dec 19 17:25:03 2002
+++ Zope3/test.py	Thu Dec 19 18:57:50 2002
@@ -554,7 +554,11 @@
 
     # Do the builds
     if build:
-        cmd = sys.executable + ' setup.py -q build'
+        # Python 2.3 is more sane in its non -q output
+        qflag = '-q'
+        if sys.hexversion >= 0x02030000:
+            qflag = ''
+        cmd = sys.executable + ' setup.py ' + qflag + ' build'
         if build_inplace:
             cmd += '_ext -i'
         sts = os.system(cmd)