Skip to content

Commit

Permalink
Json dump with EntityEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 committed Nov 15, 2016
1 parent 2313218 commit 727aa2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
NoPackagesFoundError, NoPackagesFound)
from .conda_interface import CrossPlatformStLink
from .conda_interface import NodeType, FileMode
from .conda_interface import EntityEncoder

from conda_build import __version__
from conda_build import environ, source, tarcheck
Expand Down Expand Up @@ -534,7 +535,8 @@ def create_info_files_json_v1(m, info_dir, prefix, files, files_with_prefix):
"files": files_json_files,
}
with open(join(info_dir, 'files.json'), "w") as files_json:
json.dump(files_json_info, files_json, sort_keys=True, indent=2, separators=(',', ': '))
json.dump(files_json_info, files_json, sort_keys=True, indent=2, separators=(',', ': '),
cls=EntityEncoder)


def get_build_index(config, clear_cache=True):
Expand Down

0 comments on commit 727aa2a

Please sign in to comment.