mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	basic support for termux (android) support (tested on chromeos/x86)
This commit is contained in:
		
							parent
							
								
									0cd84cf9b3
								
							
						
					
					
						commit
						a1ebae255c
					
				
							
								
								
									
										5
									
								
								depends/termux.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								depends/termux.sh
									
									
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| pkg -y install -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 ;-) | ||||
|                 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"): | ||||
|             self.add_multiarch_paths() | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user