python-pillow/python-pillow-archs.patch
2013-07-03 23:41:37 +02:00

35 lines
1.9 KiB
Diff

diff -rupN python-imaging-Pillow-75af7e0/setup.py python-imaging-Pillow-75af7e0-new/setup.py
--- python-imaging-Pillow-75af7e0/setup.py 2013-07-02 14:52:49.000000000 +0200
+++ python-imaging-Pillow-75af7e0-new/setup.py 2013-07-03 20:12:40.793669521 +0200
@@ -184,6 +184,30 @@ 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", "64bit"]:
+ _add_directory(library_dirs, "/lib64")
+ _add_directory(library_dirs, "/usr/lib64")
+ _add_directory(library_dirs, "/usr/lib/aarch64-linux-gnu")
+ break
+ elif platform_ in ["arm", "armv7l", "32bit"]:
+ _add_directory(library_dirs, "/usr/lib/arm-linux-gnueabi")
+ break
+ elif platform_ in ["ppc64", "64bit"]:
+ _add_directory(library_dirs, "/lib64")
+ _add_directory(library_dirs, "/usr/lib64")
+ _add_directory(library_dirs, "/usr/lib/ppc64-linux-gnu")
+ break
+ elif platform_ in ["ppc", "32bit"]:
+ _add_directory(library_dirs, "/usr/lib/ppc-linux-gnu")
+ break
+ elif platform_ in ["s390x", "64bit"]:
+ _add_directory(library_dirs, "/lib64")
+ _add_directory(library_dirs, "/usr/lib64")
+ _add_directory(library_dirs, "/usr/lib/s390x-linux-gnu")
+ break
+ elif platform_ in ["s390", "32bit"]:
+ _add_directory(library_dirs, "/usr/lib/s390-linux-gnu")
+ break
else:
raise ValueError(
"Unable to identify Linux platform: `%s`" % platform_)