Commit 85580200 authored by André Anjos's avatar André Anjos 💬
Browse files

[build] Be a bit more verbose about channel usage during builds

parent b61e2f9e
Pipeline #26039 failed with stages
in 1 minute and 15 seconds
...@@ -293,6 +293,8 @@ if __name__ == '__main__': ...@@ -293,6 +293,8 @@ if __name__ == '__main__':
channels = bootstrap.get_channels( channels = bootstrap.get_channels(
public=(os.environ['CI_PROJECT_VISIBILITY']=='public'), public=(os.environ['CI_PROJECT_VISIBILITY']=='public'),
stable=(not is_prerelease), server=bootstrap._SERVER, intranet=True) stable=(not is_prerelease), server=bootstrap._SERVER, intranet=True)
logger.info('Using the following channels during build:%s',
'\n - '.join(channels))
condarc_options['channels'] = channels + ['defaults'] condarc_options['channels'] = channels + ['defaults']
conda_config = make_conda_config(conda_build_config, pyver, recipe_append, conda_config = make_conda_config(conda_build_config, pyver, recipe_append,
......
...@@ -100,6 +100,8 @@ def build(recipe_dir, python, condarc, config, no_test, append_file, ...@@ -100,6 +100,8 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
else: else:
# use default and add channels # use default and add channels
condarc_options = yaml.load(BASE_CONDARC) #n.b.: no channels condarc_options = yaml.load(BASE_CONDARC) #n.b.: no channels
logger.info('Using the following channels during build:%s',
'\n - '.join(channels))
condarc_options['channels'] = channels + ['defaults'] condarc_options['channels'] = channels + ['defaults']
conda_config = make_conda_config(config, python, append_file, condarc_options) conda_config = make_conda_config(config, python, append_file, condarc_options)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment