view autobot/steps/virtualenv.py @ 254:2f2642f1dde1

forgot a ,
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 28 Dec 2011 12:02:23 -0800
parents d94fbaac7c2c
children
line wrap: on
line source

"""
steps related to virtualenvs
"""

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, **kw):
    ShellCommand.__init__(self, **kw)
    self.addFactoryArguments(directory=directory)
    self.command = ['virtualenv', WithProperties(directory)]