From f4fe73c4fe43d4f8de89d30f85a6d372ecbaea68 Mon Sep 17 00:00:00 2001 From: Alex Clark Date: Tue, 31 May 2011 11:33:28 -0400 Subject: [PATCH] Add the rest of the code ;-) --- docs/HISTORY.txt | 6 ++++++ setup.py | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt index e4c86ae62..0ba70d7ec 100644 --- a/docs/HISTORY.txt +++ b/docs/HISTORY.txt @@ -2,6 +2,12 @@ Changelog ========= +1.7.1 (2011-05-31) +------------------ + +- More multi-arch support + [SteveM, regebro, barry, aclark] + 1.7.0 (2011-05-27) ------------------ diff --git a/setup.py b/setup.py index f9848ee8d..41cde2ab4 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ except ImportError: NAME = 'Pillow' -VERSION = '1.7.0' +VERSION = '1.7.1' PIL_VERSION = '1.1.7' TCL_ROOT = None JPEG_ROOT = None @@ -442,6 +442,13 @@ class pil_build_ext(build_ext): try: if ret >> 8 == 0: with open(tmpfile) as fp: + multiarch_path_component = fp.readline().strip() + _add_directory(self.compiler.library_dirs, + '/usr/lib/' + multiarch_path_component) + _add_directory(self.compiler.include_dirs, + '/usr/include/' + multiarch_path_component) + finally: + os.unlink(tmpfile) setup( name=NAME,