Skip to content

Commit b41eaaa

Browse files
committed
convert bytes to string in mono build when building for python 3
1 parent c73acfd commit b41eaaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ def _check_output(*popenargs, **kwargs):
267267
if cmd is None:
268268
cmd = popenargs[0]
269269
raise CalledProcessError(retcode, cmd, output=output)
270+
if sys.version_info[2] > 2:
271+
return output.decode("ascii")
270272
return output
271273

272274

0 commit comments

Comments
 (0)