From 461c389ea105cda0c8284b091791dcab58787163 Mon Sep 17 00:00:00 2001 From: Michael Sarahan Date: Mon, 6 Jun 2016 14:15:24 -0500 Subject: [PATCH] keep meta.yaml; move meta.yaml.rendered into recipe folder --- conda_build/build.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/conda_build/build.py b/conda_build/build.py index fe5b407533..590f69dd75 100644 --- a/conda_build/build.py +++ b/conda_build/build.py @@ -192,17 +192,16 @@ def create_info_files(m, files, include_recipe=True): shutil.copytree(src_path, dst_path) else: shutil.copy(src_path, dst_path) - os.rename(join(recipe_dir, "meta.yaml"), join(recipe_dir, "meta.yaml.template")) - - # store the rendered meta.yaml file, plus information about where it came from - # and what version of conda-build created it - metayaml = output_yaml(m) - with open(join(config.info_dir, "meta.yaml"), 'w') as f: - f.write("# This file created by conda-build {}\n".format(__version__)) - f.write("# meta.yaml template originally from:\n") - f.write("# " + source.get_repository_info(m.path) + "\n") - f.write("# ------------------------------------------------\n\n") - f.write(metayaml) + + # store the rendered meta.yaml file, plus information about where it came from + # and what version of conda-build created it + metayaml = output_yaml(m) + with open(join(recipe_dir, "meta.yaml.rendered"), 'w') as f: + f.write("# This file created by conda-build {}\n".format(__version__)) + f.write("# meta.yaml template originally from:\n") + f.write("# " + source.get_repository_info(m.path) + "\n") + f.write("# ------------------------------------------------\n\n") + f.write(metayaml) license_file = m.get_value('about/license_file') if license_file: