# HG changeset patch # User Jeff Hammel # Date 1296001282 28800 # Node ID 4a020fc59cec160dcb8f1b0e1238a7a58d35365f # Parent 5e1b450341a22b323e8aeedf03e93a5fc96f11da make checking out optional for virtualenv factory diff -r 5e1b450341a2 -r 4a020fc59cec autobot/process/factory.py --- 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):