Skip to content
Snippets Groups Projects

Removed use-local option

Merged Tiago de Freitas Pereira requested to merge removed-use-local-option into master
3 files
+ 4
15
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -67,9 +67,6 @@ Examples:
@click.option('-X', '--stable/--no-stable', default=False,
help='Set this to **exclude** beta channels from your build - ' \
'notice this option has no effect if you also pass --condarc')
@click.option('-L', '--use-local/--no-use-local', default=False,
help='Set this to **include** the locally built packages on the search ' \
'list - notice this option has no effect if you also pass --condarc')
@click.option('-d', '--dry-run/--no-dry-run', default=False,
help='Only goes through the actions, but does not execute them ' \
'(combine with the verbosity flags - e.g. ``-vvv``) to enable ' \
@@ -79,7 +76,7 @@ Examples:
@verbosity_option()
@bdt.raise_on_error
def build(recipe_dir, python, condarc, config, no_test, append_file,
server, group, private, stable, use_local, dry_run, ci):
server, group, private, stable, dry_run, ci):
"""Builds package through conda-build with stock configuration
This command wraps the execution of conda-build so that you use the same
@@ -107,7 +104,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
condarc_options = yaml.load(f, Loader=yaml.FullLoader)
else:
# use default and add channels
all_channels = ['local'] if use_local else []
all_channels = []
all_channels += channels + ['defaults']
condarc_options = yaml.load(BASE_CONDARC, Loader=yaml.FullLoader)
logger.info('Using the following channels during build:\n - %s',
Loading