Skip to content
Snippets Groups Projects
Commit 1182e071 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts][build] Prepare script to be used at ci.nightlies

parent 02d3dd1c
No related branches found
No related tags found
No related merge requests found
Pipeline #27920 passed
...@@ -139,9 +139,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file, ...@@ -139,9 +139,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
# pre-renders the recipe - figures out the destination # pre-renders the recipe - figures out the destination
metadata = get_rendered_metadata(d, conda_config) metadata = get_rendered_metadata(d, conda_config)
rendered_recipe = get_parsed_recipe(metadata) rendered_recipe = get_parsed_recipe(metadata)
path = get_output_path(metadata, conda_config) path = get_output_path(metadata, conda_config)
# checks if we should actually build this recipe # checks if we should actually build this recipe
...@@ -159,10 +157,15 @@ def build(recipe_dir, python, condarc, config, no_test, append_file, ...@@ -159,10 +157,15 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
# already resolved the "wrong" build number. We'll have to reparse after # already resolved the "wrong" build number. We'll have to reparse after
# setting the environment variable BOB_BUILD_NUMBER. # setting the environment variable BOB_BUILD_NUMBER.
set_environment('BOB_BUILD_NUMBER', str(build_number)) set_environment('BOB_BUILD_NUMBER', str(build_number))
metadata = get_rendered_metadata(d, conda_config)
path = get_output_path(metadata, conda_config)
logger.info('Building %s-%s-py%s (build: %d) for %s', logger.info('Building %s-%s-py%s (build: %d) for %s',
rendered_recipe['package']['name'], rendered_recipe['package']['name'],
rendered_recipe['package']['version'], python.replace('.',''), rendered_recipe['package']['version'], python.replace('.',''),
build_number, arch) build_number, arch)
if not dry_run: if not dry_run:
conda_build.api.build(d, config=conda_config, notest=no_test) conda_build.api.build(metadata[0][0], config=conda_config, notest=no_test)
# if you get to this point, the package was successfully rebuilt
# set environment to signal caller we can upload it
os.environ['BDT_BUILD'] = path
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