[Buildbot-commits] buildbot/buildbot/process process_twisted.py,1.34,1.35

Brian Warner warner at users.sourceforge.net
Mon Nov 15 09:26:32 UTC 2004


Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13040/buildbot/process

Modified Files:
	process_twisted.py 
Log Message:
(QuickTwistedBuildFactory): try to teach the Quick factory to use multiple
versions of python


Index: process_twisted.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/process_twisted.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- process_twisted.py	12 Sep 2004 06:42:39 -0000	1.34
+++ process_twisted.py	15 Nov 2004 09:26:29 -0000	1.35
@@ -40,15 +40,19 @@
     useProgress = 0
 
     def __init__(self, svnurl, python="python"):
+        if type(python) is str:
+            python = [python]
         self.steps = []
         self.steps.append(s(step.SVN, svnurl=svnurl, mode=self.mode))
-        self.steps.append(s(HLint, python=python))
-        cmd = "%s setup.py build_ext -i" % python
-        self.steps.append(s(step.Compile, command=cmd, flunkOnFailure=True))
+        self.steps.append(s(HLint, python=python[0]))
         self.steps.append(s(RemovePYCs))
-        self.steps.append(s(TwistedTrial,
-                            python=python, # can be a list
-                            testChanges=True))
+        for p in python:
+            cmd = "%s setup.py build_ext -i" % p
+            self.steps.append(s(step.Compile, command=cmd,
+                                flunkOnFailure=True))
+            self.steps.append(s(TwistedTrial,
+                                python=p, # can be a list
+                                testChanges=True))
 
 class FullTwistedBuildFactory(TwistedBaseFactory):
     treeStableTimer = 5*60





More information about the Commits mailing list