mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
fix compilation on Termux
This commit is contained in:
parent
127315275f
commit
e3c8ef980b
6
setup.py
6
setup.py
|
@ -561,7 +561,11 @@ class pil_build_ext(build_ext):
|
||||||
# headers are at $PREFIX/include
|
# headers are at $PREFIX/include
|
||||||
# user libs are at $PREFIX/lib
|
# user libs are at $PREFIX/lib
|
||||||
_add_directory(
|
_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"):
|
elif sys.platform.startswith("netbsd"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user