Try to fix build with python 3.
authorCarl Hetherington <cth@carlh.net>
Sun, 17 Dec 2017 14:51:58 +0000 (14:51 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 17 Dec 2017 14:51:58 +0000 (14:51 +0000)
wscript

diff --git a/wscript b/wscript
index ea0f8d5a70adec78dbc56afceb52c015d46a67cf..7477a3d57762163110583be3a6d8977598e89cf4 100644 (file)
--- a/wscript
+++ b/wscript
@@ -119,7 +119,7 @@ def configure(conf):
     # Find the icu- libraries on the system as we need to link to them when we look for boost locale.
     locale_libs = ['boost_locale%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix]
     for pkg in subprocess.check_output(['pkg-config', '--list-all']).splitlines():
-        if pkg.startswith("icu"):
+        if pkg.startswith(b"icu"):
             for lib in subprocess.check_output(['pkg-config', '--libs-only-l', pkg.split()[0]]).split():
                 name = lib[2:]
                 if not name in locale_libs: