# HG changeset patch # User Jeff Hammel # Date 1294687999 28800 # Node ID 481f0bb18787bb63d8d5aabb60fbd08a572af6d6 # Parent 19d5550012927ffdb4b5ccba4ffd2dbf5195a826 stub out installing the packages, for hg anyway diff -r 19d555001292 -r 481f0bb18787 autobot/process/factory.py --- a/autobot/process/factory.py Mon Jan 10 11:26:07 2011 -0800 +++ b/autobot/process/factory.py Mon Jan 10 11:33:19 2011 -0800 @@ -65,8 +65,14 @@ # setup the environment VirtualenvFactory.__init__(self, name=name, hg_sources=hg_sources, git_sources=git_sources) - # install the packages [TODO] - + # install the packages + for hg_source in hg_sources: + package = hg_source.rstrip('/').rsplit('/', 1)[-1] + self.addStep(ShellCommand(command=[WithProperties('%(python)s'), 'setup.py', 'install'], + workdir=WithProperties('%(virtualenv)s/src/' + package), + haltOnFailure=True)) + for git_source in git_sources: + pass # [TODO] # python sources: # [{'source': 'http://hg.mozilla.org/....', diff -r 19d555001292 -r 481f0bb18787 autobot/template.py --- a/autobot/template.py Mon Jan 10 11:26:07 2011 -0800 +++ b/autobot/template.py Mon Jan 10 11:33:19 2011 -0800 @@ -96,8 +96,7 @@ AutobotMasterTemplate.create(self, os.path.join(self.output, 'master'), variables) AutobotSlaveTemplate.create(self, os.path.join(self.output, 'slave'), variables) -# CLI front end functions -# (console_script entry points) +# CLI front end class class AutobotMasterCLI(MakeItSoCLI): """ @@ -127,6 +126,9 @@ # call the parent MakeItSoCLI.parse(self, parser, options, args) + +### console_script front-ends + def create_master(args=sys.argv[1:]): cli = AutobotMasterCLI(AutobotMasterTemplate) template = cli.parse()