add python3 compatibility to verbose output for android build (#221)
This cause, that stdout is text file, but codecs.StreamWriter encodes string to bytes.
This commit is contained in:
parent
768bb5c8f6
commit
10333efcaf
1 changed files with 4 additions and 1 deletions
|
@ -351,6 +351,9 @@ class Buildozer(object):
|
||||||
show_output = kwargs.pop('show_output')
|
show_output = kwargs.pop('show_output')
|
||||||
|
|
||||||
if show_output:
|
if show_output:
|
||||||
|
if IS_PY3:
|
||||||
|
kwargs['logfile'] = codecs.getwriter('utf8')(stdout.buffer)
|
||||||
|
else:
|
||||||
kwargs['logfile'] = codecs.getwriter('utf8')(stdout)
|
kwargs['logfile'] = codecs.getwriter('utf8')(stdout)
|
||||||
|
|
||||||
if not sensible:
|
if not sensible:
|
||||||
|
|
Loading…
Reference in a new issue