build: (fixes #17) Fix string type consistency issue

This commit is contained in:
Tom Henderson
2019-01-13 21:01:43 -08:00
parent 3581c5c07c
commit f2fa869597

View File

@@ -87,8 +87,8 @@ def build(bld):
find_sdk_path = '/usr/bin/xcrun --show-sdk-path'.split()
try:
p = subprocess.Popen(find_sdk_path, stdout=subprocess.PIPE)
xcrun_output = p.stdout.read().strip()
module.includes = xcrun_output + '/usr/include/libxml2'
xcrun_output = p.stdout.read().strip().decode("utf-8")
module.includes = str(xcrun_output + u'/usr/include/libxml2')
except OSError:
pass