Skip to content

Commit

Permalink
keep meta.yaml; move meta.yaml.rendered into recipe folder
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Jun 6, 2016
1 parent 13790f4 commit 461c389
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 461c389

Please sign in to comment.