view 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 source

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)