Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/planemo/galaxy_run.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d67268158946 |
---|---|
1 from planemo.io import info | |
2 from galaxy.tools.deps.commands import shell | |
3 | |
4 | |
5 # Activate galaxy's virtualenv if present (needed for tests say but not for | |
6 # server because run.sh does this). | |
7 ACTIVATE_COMMAND = "[ -e .venv ] && . .venv/bin/activate" | |
8 | |
9 # TODO: Mac-y curl variant of this. | |
10 DOWNLOAD_GALAXY = ( | |
11 "wget https://codeload.github.com/galaxyproject/galaxy/tar.gz/dev" | |
12 ) | |
13 | |
14 | |
15 def run_galaxy_command(ctx, command, env, action, daemon=False): | |
16 message = "%s with command [%s]" % (action, command) | |
17 info(message) | |
18 ctx.vlog("With environment variables:") | |
19 ctx.vlog("============================") | |
20 for key, value in env.items(): | |
21 ctx.vlog('%s="%s"' % (key, value)) | |
22 ctx.vlog("============================") | |
23 return shell(command, env=env) |