mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge pull request #2684 from wiredfool/termux
Basic support for Termux (android)
This commit is contained in:
commit
d078eaf724
5
depends/termux.sh
Executable file
5
depends/termux.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pkg -y install python python-dev ndk-sysroot clang make \
|
||||||
|
libjpeg-turbo-dev
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -365,6 +365,14 @@ class pil_build_ext(build_ext):
|
||||||
# work ;-)
|
# work ;-)
|
||||||
self.add_multiarch_paths()
|
self.add_multiarch_paths()
|
||||||
|
|
||||||
|
# termux support for android.
|
||||||
|
# system libraries (zlib) are installed in /system/lib
|
||||||
|
# headers are at $PREFIX/include
|
||||||
|
# user libs are at $PREFIX/lib
|
||||||
|
if os.environ.get('ANDROID_ROOT', None):
|
||||||
|
_add_directory(library_dirs,
|
||||||
|
os.path.join(os.environ['ANDROID_ROOT'],'lib'))
|
||||||
|
|
||||||
elif sys.platform.startswith("gnu"):
|
elif sys.platform.startswith("gnu"):
|
||||||
self.add_multiarch_paths()
|
self.add_multiarch_paths()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user