From bf59b2239cd65f4298a370e3740f5bbebfbfcb02 Mon Sep 17 00:00:00 2001 From: Alex Clark Date: Thu, 2 Jun 2011 13:03:05 -0400 Subject: [PATCH] Python 2.4 compat --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index aa03d7193..8b9a155c3 100644 --- a/setup.py +++ b/setup.py @@ -441,8 +441,8 @@ class pil_build_ext(build_ext): tmpfile) try: if ret >> 8 == 0: - with open(tmpfile) as fp: - multiarch_path_component = fp.readline().strip() + fp = open(tmpfile, 'rb') + multiarch_path_component = fp.readline().strip() _add_directory(self.compiler.library_dirs, '/usr/lib/' + multiarch_path_component) _add_directory(self.compiler.include_dirs,