diff --git a/bob/devtools/scripts/build.py b/bob/devtools/scripts/build.py index c8dc8566497462a5ea4aea9b9e41f292b4d369ca..581c0e3cc4e8483e96d3d97cb800d4a7a0c6e324 100644 --- a/bob/devtools/scripts/build.py +++ b/bob/devtools/scripts/build.py @@ -139,17 +139,15 @@ def build(recipe_dir, python, condarc, config, no_test, append_file, # pre-renders the recipe - figures out the destination metadata = get_rendered_metadata(d, conda_config) - rendered_recipe = get_parsed_recipe(metadata) - path = get_output_path(metadata, conda_config) # checks if we should actually build this recipe if should_skip_build(metadata): - logger.info('Skipping UNSUPPORTED build of %s-%s-py%s for %s', - rendered_recipe['package']['name'], - rendered_recipe['package']['version'], python.replace('.',''), - arch) + logger.info('Skipping UNSUPPORTED build of %s for %s', recipe_dir, arch) continue + rendered_recipe = get_parsed_recipe(metadata) + path = get_output_path(metadata, conda_config) + # gets the next build number build_number, _ = next_build_number(channels[0], os.path.basename(path)) diff --git a/bob/devtools/scripts/rebuild.py b/bob/devtools/scripts/rebuild.py index f9ea9ccd078393879f59177a3c07e1567860333e..18880e89ff57f044dea83e5dbdc9f6600311e83b 100644 --- a/bob/devtools/scripts/rebuild.py +++ b/bob/devtools/scripts/rebuild.py @@ -135,18 +135,14 @@ def rebuild(recipe_dir, python, condarc, config, append_file, # pre-renders the recipe - figures out the destination metadata = get_rendered_metadata(d, conda_config) - rendered_recipe = get_parsed_recipe(metadata) - - path = get_output_path(metadata, conda_config) - # checks if we should actually build this recipe if should_skip_build(metadata): - logger.info('Skipping UNSUPPORTED build of %s-%s-py%s for %s', - rendered_recipe['package']['name'], - rendered_recipe['package']['version'], python.replace('.',''), - arch) + logger.info('Skipping UNSUPPORTED build of %s for %s', recipe_dir, arch) continue + rendered_recipe = get_parsed_recipe(metadata) + path = get_output_path(metadata, conda_config) + # Get the latest build number build_number, existing = next_build_number(channels[0], os.path.basename(path))