From 04616ba9ea60c8acfd5bac1aca8ede26f28fc48a Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 8 Jan 2014 11:38:53 +0100 Subject: [PATCH] Add arch support for pcc64, s390, s390x, armv7l, aarch64 --- setup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/setup.py b/setup.py index 0aafde5cd..fb2aeffb3 100644 --- a/setup.py +++ b/setup.py @@ -235,9 +235,29 @@ class pil_build_ext(build_ext): elif platform_ in ["i386", "i686", "32bit"]: _add_directory(library_dirs, "/usr/lib/i386-linux-gnu") break + elif platform_ in ["aarch64"]: + _add_directory(library_dirs, "/usr/lib64") + _add_directory(library_dirs, "/usr/lib/aarch64-linux-gnu") + break + elif platform_ in ["arm", "armv7l"]: + _add_directory(library_dirs, "/usr/lib/arm-linux-gnueabi") + break + elif platform_ in ["ppc64"]: + _add_directory(library_dirs, "/usr/lib64") + _add_directory(library_dirs, "/usr/lib/ppc64-linux-gnu") + _add_directory(library_dirs, "/usr/lib/powerpc64-linux-gnu") + break elif platform_ in ["ppc"]: + _add_directory(library_dirs, "/usr/lib/ppc-linux-gnu") _add_directory(library_dirs, "/usr/lib/powerpc-linux-gnu") break + elif platform_ in ["s390x"]: + _add_directory(library_dirs, "/usr/lib64") + _add_directory(library_dirs, "/usr/lib/s390x-linux-gnu") + break + elif platform_ in ["s390"]: + _add_directory(library_dirs, "/usr/lib/s390-linux-gnu") + break else: raise ValueError( "Unable to identify Linux platform: `%s`" % platform_)