Skip to content
Snippets Groups Projects
Commit e5250c7a authored by André Anjos's avatar André Anjos 💬
Browse files

[build] Fix build skip detection

parent 5c6f53ff
No related branches found
No related tags found
No related merge requests found
Pipeline #26928 passed
......@@ -520,11 +520,6 @@ def base_build(bootstrap, server, intranet, recipe_dir, conda_build_config,
condarc_options)
metadata = get_rendered_metadata(recipe_dir, conda_config)
recipe = get_parsed_recipe(metadata)
if recipe is None:
logger.info('Skipping build for %s - rendering returned None', recipe_dir)
return
# handles different cases as explained on the description of
# ``python_version``
......@@ -532,6 +527,20 @@ def base_build(bootstrap, server, intranet, recipe_dir, conda_build_config,
if py_ver == 'noarch': py_ver = ''
arch = conda_arch()
# checks we should actually build this recipe
if should_skip_build(metadata):
if py_ver is None:
logger.warn('Skipping UNSUPPORTED build of "%s" on %s', recipe_dir, arch)
elif not py_ver:
logger.warn('Skipping UNSUPPORTED build of "%s" for (noarch) python ' \
'on %s', recipe_dir, arch)
else:
logger.warn('Skipping UNSUPPORTED build of "%s" for python-%s ' \
'on %s', recipe_dir, python_version, arch)
return
recipe = get_parsed_recipe(metadata)
candidate = exists_on_channel(public_channels[0], recipe['package']['name'],
recipe['package']['version'], recipe['build']['number'],
python_version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment