From e3c8ef980b9faeb2f30056e42eba9da7e1dceccf Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Sun, 24 Oct 2021 12:38:13 +0100 Subject: [PATCH] fix compilation on Termux --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3574c9137..b0426961c 100755 --- a/setup.py +++ b/setup.py @@ -561,7 +561,11 @@ class pil_build_ext(build_ext): # headers are at $PREFIX/include # user libs are at $PREFIX/lib _add_directory( - library_dirs, os.path.join(os.environ["ANDROID_ROOT"], "lib") + library_dirs, + os.path.join( + os.environ["ANDROID_ROOT"], + "lib" if struct.calcsize("l") == 4 else "lib64" + ) ) elif sys.platform.startswith("netbsd"):