changeset 156:4a020fc59cec

make checking out optional for virtualenv factory
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 25 Jan 2011 16:21:22 -0800
parents 5e1b450341a2
children f6774dcafb6a
files autobot/process/factory.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/process/factory.py	Tue Jan 25 16:17:29 2011 -0800
+++ b/autobot/process/factory.py	Tue Jan 25 16:21:22 2011 -0800
@@ -73,7 +73,7 @@
   create a virtualenv and install some python packages in it
   """
 
-  def __init__(self, name='env', hg=None, git=None):
+  def __init__(self, name='env', hg=None, git=None, checkout=True):
     """
     - name : of the virtualenv
     - hg: sources of python packages with setuptools setup.pys
@@ -104,8 +104,9 @@
                               workdir=WithProperties('%(virtualenv)s')))
 
     # checkout sources
-    self.checkout(workdir=WithProperties('%(virtualenv)s/src'),
-                  haltOnFailure=True)
+    if checkout:
+      self.checkout(workdir=WithProperties('%(virtualenv)s/src'),
+                    haltOnFailure=True)
 
 
   def findScript(self, script):