Mercurial > hg > autobot
changeset 44:481f0bb18787
stub out installing the packages, for hg anyway
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 10 Jan 2011 11:33:19 -0800 |
parents | 19d555001292 |
children | 23a877bbb34d |
files | autobot/process/factory.py autobot/template.py |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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/....',
--- 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()