changeset 35:9866e68887c8

stub out git sources in virtualenv package; this should probably be more pluggable/flexible
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 10:39:04 -0800
parents 206467b6f61f
children d91d3dfadb6b
files autobot/process/factory.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/process/factory.py	Sat Jan 08 10:21:54 2011 -0800
+++ b/autobot/process/factory.py	Sat Jan 08 10:39:04 2011 -0800
@@ -11,7 +11,7 @@
   create a virtualenv
   """
 
-  def __init__(self, name='env', hg_sources=()):
+  def __init__(self, name='env', hg_sources=(), git_sources=()):
     """
     - name : of the virtualenv
     - hg_sources : sources of python packages with setuptools setup.pys
@@ -29,6 +29,10 @@
       self.addStep(ShellCommand(command=['hg', 'clone', hg_source],
                                 directory=name + '/src'))
 
+    # clone the git repositories
+    for git_source in git_sources:
+      self.addStep(ShellCommand(command=['git', 'clone', git_source],
+                                directory=name + '/src'))
 
 class PythonSourceFactory(VirtualenvFactory):
   """