From: Uwe Hermann Date: Tue, 16 Apr 2013 20:19:00 +0000 (+0200) Subject: Python bindings: Small fix for Python 3 support. X-Git-Tag: dsupstream~122 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9bb2f327a9dd482f609b10e34f72e57816cd4531;p=libsigrok.git Python bindings: Small fix for Python 3 support. --- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index bb161cba..57f9bc62 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -21,13 +21,13 @@ from distutils.core import setup, Extension import subprocess sr_includes = subprocess.check_output( - ["pkg-config", "--cflags", "libsigrok"]).rstrip().split(' ') + ["pkg-config", "--cflags", "libsigrok"]).rstrip().decode().split(' ') sr_libs = subprocess.check_output( - ["pkg-config", "--libs", "libsigrok"]).rstrip().split(' ') + ["pkg-config", "--libs", "libsigrok"]).rstrip().decode().split(' ') sr_version = subprocess.check_output( - ["pkg-config", "--modversion", "libsigrok"]).rstrip() + ["pkg-config", "--modversion", "libsigrok"]).decode().rstrip() setup( name = 'libsigrok',