]> sigrok.org Git - libsigrok.git/commitdiff
Python bindings: Small fix for Python 3 support.
authorUwe Hermann <redacted>
Tue, 16 Apr 2013 20:19:00 +0000 (22:19 +0200)
committerUwe Hermann <redacted>
Tue, 16 Apr 2013 20:35:17 +0000 (22:35 +0200)
bindings/python/setup.py

index bb161cba8f792c792749461e27d0f8eaf61525ed..57f9bc627b519671112c8e2fdfad85503dcaab7e 100644 (file)
@@ -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',