Mercurial > hg > autobot
diff autobot/steps/virtualenv.py @ 0:8e14b6322cc7
initial stub for ateam buildbot
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 22 Dec 2010 11:15:45 -0800 |
parents | |
children | f586e28ff3d7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autobot/steps/virtualenv.py Wed Dec 22 11:15:45 2010 -0800 @@ -0,0 +1,10 @@ +from buildbot.process.properties import WithProperties +from buildbot.steps.shell import ShellCommand + +class CreateVirtualenv(ShellCommand): + """create a virtualenv""" + # XXX needs to have virtualenv installed (on the slave) + + def __init__(self, directory): + command = ['virtualenv', WithProperties(directory)] + ShellCommand.__init__(self, command=command)