Merge pull request #744 from matthew-brett/py3-setup-fix

FIX: fix error for setup.py for Python 3
This commit is contained in:
Alex Clark ☺ 2014-06-28 17:47:36 -04:00
commit c1035c2832

View File

@ -210,7 +210,9 @@ class pil_build_ext(build_ext):
# if Homebrew is installed, use its lib and include directories # if Homebrew is installed, use its lib and include directories
import subprocess import subprocess
try: try:
prefix = subprocess.check_output(['brew', '--prefix']).strip() prefix = subprocess.check_output(
['brew', '--prefix']
).strip().decode('latin1')
except: except:
# Homebrew not installed # Homebrew not installed
prefix = None prefix = None