# HG changeset patch # User Jeff Hammel # Date 1294788216 28800 # Node ID 6a79522282c3871192a6c2d48fed274586c5e0b9 # Parent a7ee8eacf605e6370515d40788fbf572207b15da stub borked :( i hate not having a platform diff -r a7ee8eacf605 -r 6a79522282c3 autobot/process/factory.py --- a/autobot/process/factory.py Tue Jan 11 15:07:47 2011 -0800 +++ b/autobot/process/factory.py Tue Jan 11 15:23:36 2011 -0800 @@ -1,4 +1,3 @@ -from autobot.steps import find from autobot.steps import CreateVirtualenv from buildbot.process.factory import BuildFactory from buildbot.steps.shell import SetProperty @@ -42,13 +41,14 @@ self.addStep(SetProperty(property='scripts', command=find('Scripts', 'bin'), workdir=WithProperties('%(virtualenv)s'))) - self.addStep(SetProperty(property='python', - workdir=WithProperties('%(virtualenv)s/%(scripts)s'), - command=find('python', 'python.exe'))) + self.findScript('python') +# self.addStep(SetProperty(property='python', +# workdir=WithProperties('%(virtualenv)s/%(scripts)s'), +# command=find('python', 'python.exe'))) # add a source directory self.addStep(ShellCommand(command=['mkdir', '-p', 'src'], - workdir=WithProperties('%(virtualenv)s')) + workdir=WithProperties('%(virtualenv)s'))) # clone hg repositories @@ -63,14 +63,14 @@ workdir=WithProperties('%(virtualenv)s/src'), haltOnFailure=True)) - def findScript(self, script): - """ - find the name of the script cross-platform - - script: unix-style name of the script - """ - self.addStep(SetProperty(property=script, - command=find(script, script + '.exe'), - workdir=WithProperties('%(virtualenv)s/%(script)s'))) + def findScript(self, script): + """ + find the name of the script cross-platform + - script: unix-style name of the script + """ + self.addStep(SetProperty(property=script, + command=find(script, script + '.exe'), + workdir=WithProperties('%(virtualenv)s/%(scripts)s')))