##// END OF EJS Templates
cast unicode to allow json dump
Matthias Bussonnier -
Show More
@@ -1,2 +1,2 b''
1 1 # GENERATED BY setup.py
2 commit = ""
2 commit = u""
@@ -61,8 +61,8 b' def pkg_commit_hash(pkg_path):'
61 61 cwd=pkg_path, shell=True)
62 62 repo_commit, _ = proc.communicate()
63 63 if repo_commit:
64 return 'repository', repo_commit.strip()
65 return '(none found)', '<not found>'
64 return 'repository', repo_commit.strip().decode('ascii')
65 return '(none found)', u'<not found>'
66 66
67 67
68 68 def pkg_info(pkg_path):
@@ -579,7 +579,7 b' def git_prebuild(pkg_dir, build_cmd=build_py):'
579 579 with open(out_pth, 'w') as out_file:
580 580 out_file.writelines([
581 581 '# GENERATED BY setup.py\n',
582 'commit = "%s"\n' % repo_commit,
582 'commit = u"%s"\n' % repo_commit,
583 583 ])
584 584 return require_submodules(MyBuildPy)
585 585
General Comments 0
You need to be logged in to leave comments. Login now