Skip to content

Commit

Permalink
set empty build section if none exists
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Jun 4, 2016
1 parent cae2e6c commit e86b893
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conda_build/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ def check_symlinks(files):

def get_build_metadata(m):
src_dir = source.get_dir()
if "build" not in m.meta:
m.meta["build"] = {}
if exists(join(src_dir, '__conda_version__.txt')):
print("Deprecation warning: support for __conda_version__ will be removed in Conda build 2.0." # noqa
"Try Jinja templates instead: "
Expand Down

0 comments on commit e86b893

Please sign in to comment.