py3k: Get setup.py to run under python3

First real fix: open the temp file in text mode.
This commit is contained in:
Brian Crowell 2012-10-11 07:57:21 -05:00 committed by Brian Crowell
parent 78575798d7
commit 009eee0577

View File

@ -1,3 +1,4 @@
from __future__ import print_function
import glob
import os
import platform
@ -433,7 +434,7 @@ class pil_build_ext(build_ext):
tmpfile)
try:
if ret >> 8 == 0:
fp = open(tmpfile, 'rb')
fp = open(tmpfile, 'r')
multiarch_path_component = fp.readline().strip()
_add_directory(self.compiler.library_dirs,
'/usr/lib/' + multiarch_path_component)