Skip to content

Commit

Permalink
Convert subprocess bytes to str
Browse files Browse the repository at this point in the history
This will fix subprocess errors in python 3.

Ref #110
  • Loading branch information
Linkid committed Jan 18, 2018
1 parent 9a6c228 commit cfb6720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -338,8 +338,8 @@ def pc_info(pkg, altnames=[]):
sys.stderr.write('(Check that you have the appropriate development package installed.)\n')
sys.exit(1)

cflags = shlex.split(subprocess.check_output([pkg_config, '--cflags', pkg]))
libs = shlex.split(subprocess.check_output([pkg_config, '--libs', pkg]))
cflags = shlex.split(subprocess.check_output([pkg_config, '--cflags', pkg]).decode())
libs = shlex.split(subprocess.check_output([pkg_config, '--libs', pkg]).decode())

# Pick out anything interesting in the cflags and libs, and
# silently drop the rest.
Expand Down

0 comments on commit cfb6720

Please sign in to comment.