Mercurial > hg > autobot
changeset 76:6a79522282c3
stub borked :( i hate not having a platform
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 15:23:36 -0800 |
parents | a7ee8eacf605 |
children | 7493ba72cce7 |
files | autobot/process/factory.py |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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')))