mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Install libimagequant for Travis build
This commit is contained in:
		
							parent
							
								
									eb354be7c4
								
							
						
					
					
						commit
						4b260ac369
					
				|  | @ -45,6 +45,9 @@ install: | |||
|   # openjpeg | ||||
|   - pushd depends && ./install_openjpeg.sh && popd | ||||
| 
 | ||||
|   # libimagequant | ||||
|   - pushd depends && ./install_imagequant.sh && popd | ||||
| 
 | ||||
| script: | ||||
|   - if [ "$TRAVIS_PYTHON_VERSION" != "nightly" ]; then coverage erase; fi | ||||
|   - python setup.py clean | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| Depends | ||||
| ======= | ||||
| 
 | ||||
| ``install_openjpeg.sh`` and ``install_webp.sh`` can be used to | ||||
| download, build & install non-packaged dependencies; useful for | ||||
| ``install_openjpeg.sh``, ``install_webp.sh`` and ``install_imagequant.sh`` can | ||||
| be used to download, build & install non-packaged dependencies; useful for | ||||
| testing with Travis CI. | ||||
| 
 | ||||
| The other scripts can be used to install all of the dependencies for | ||||
|  |  | |||
|  | @ -14,3 +14,4 @@ sudo apt-get -y install libtiff5-dev libjpeg62-turbo-dev zlib1g-dev \ | |||
|      python-tk python3-tk | ||||
| 
 | ||||
| ./install_openjpeg.sh | ||||
| ./install_imagequant.sh | ||||
|  |  | |||
							
								
								
									
										12
									
								
								depends/install_imagequant.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								depends/install_imagequant.sh
									
									
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| #!/bin/bash | ||||
| # install libimagequant | ||||
| 
 | ||||
| git clone https://github.com/pornel/pngquant | ||||
| 
 | ||||
| pushd pngquant | ||||
| 
 | ||||
| make -C lib shared | ||||
| sudo cp lib/libimagequant.so* /usr/lib/ | ||||
| sudo cp lib/libimagequant.h /usr/include/ | ||||
| 
 | ||||
| popd | ||||
|  | @ -14,3 +14,4 @@ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \ | |||
| 
 | ||||
| ./install_openjpeg.sh | ||||
| ./install_webp.sh | ||||
| ./install_imagequant.sh | ||||
|  |  | |||
|  | @ -12,3 +12,4 @@ sudo apt-get -y install libtiff5-dev libjpeg8-dev zlib1g-dev \ | |||
|     python-tk python3-tk | ||||
| 
 | ||||
| ./install_openjpeg.sh | ||||
| ./install_imagequant.sh | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user