diff --git a/conda_build/build.py b/conda_build/build.py index 44c52374c7..717efdc725 100644 --- a/conda_build/build.py +++ b/conda_build/build.py @@ -211,6 +211,14 @@ def copy_recipe(m): if 'outputs' in output_metadata.meta: del output_metadata.meta['outputs'] + for field, value in output_metadata.meta.items(): + for key in value.keys(): + if '{}/{}' .format(field, key) not in ('build/script', 'test/commands'): + try: + output_metadata.meta[field][key].sort() + except AttributeError: + pass + rendered = output_yaml(output_metadata) if not original_recipe or not open(original_recipe).read() == rendered: