Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/planemo/commands/cmd_conda_build.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 """Module describing the planemo ``conda_build`` command.""" | |
2 from __future__ import print_function | |
3 | |
4 import click | |
5 | |
6 from planemo import options | |
7 from planemo.cli import command_function | |
8 from planemo.conda import build_conda_context | |
9 | |
10 | |
11 @click.command('conda_build') | |
12 @options.conda_target_options(include_local=False) # No reason to expose local, we have to use it. | |
13 @options.recipe_arg(multiple=True) | |
14 @command_function | |
15 def cli(ctx, paths, **kwds): | |
16 """Perform conda build with Planemo's conda.""" | |
17 # Force conda_use_local for building... | |
18 kwds["conda_use_local"] = True | |
19 conda_context = build_conda_context(ctx, handle_auto_init=True, **kwds) | |
20 build_args = list(paths) | |
21 conda_context.exec_command("build", build_args) |