# HG changeset patch # User Jeff Hammel # Date 1294511944 28800 # Node ID 9866e68887c8beb094a2b5d494a4f49881542acf # Parent 206467b6f61f834f2718432b334ce1c65695f2de stub out git sources in virtualenv package; this should probably be more pluggable/flexible diff -r 206467b6f61f -r 9866e68887c8 autobot/process/factory.py --- 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): """