Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep meta.yaml; move meta.yaml.rendered into recipe folder #1004

Merged
merged 1 commit into from
Jun 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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