Mercurial > repos > shellac > sam_consensus_v3
view 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 |
line wrap: on
line source
"""Module describing the planemo ``conda_build`` command.""" from __future__ import print_function import click from planemo import options from planemo.cli import command_function from planemo.conda import build_conda_context @click.command('conda_build') @options.conda_target_options(include_local=False) # No reason to expose local, we have to use it. @options.recipe_arg(multiple=True) @command_function def cli(ctx, paths, **kwds): """Perform conda build with Planemo's conda.""" # Force conda_use_local for building... kwds["conda_use_local"] = True conda_context = build_conda_context(ctx, handle_auto_init=True, **kwds) build_args = list(paths) conda_context.exec_command("build", build_args)