mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Merge pull request #4965 from radarhere/warning
This commit is contained in:
		
						commit
						1b4ecdf8cd
					
				
							
								
								
									
										6
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -38,13 +38,17 @@ ZLIB_ROOT = None | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| if sys.platform == "win32" and sys.version_info >= (3, 10): | if sys.platform == "win32" and sys.version_info >= (3, 10): | ||||||
|     warnings.warn( |     import atexit | ||||||
|  | 
 | ||||||
|  |     atexit.register( | ||||||
|  |         lambda: warnings.warn( | ||||||
|             f"Pillow {PILLOW_VERSION} does not support Python " |             f"Pillow {PILLOW_VERSION} does not support Python " | ||||||
|             f"{sys.version_info.major}.{sys.version_info.minor} and does not provide " |             f"{sys.version_info.major}.{sys.version_info.minor} and does not provide " | ||||||
|             "prebuilt Windows binaries. We do not recommend building from source on " |             "prebuilt Windows binaries. We do not recommend building from source on " | ||||||
|             "Windows.", |             "Windows.", | ||||||
|             RuntimeWarning, |             RuntimeWarning, | ||||||
|         ) |         ) | ||||||
|  |     ) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| _IMAGING = ("decode", "encode", "map", "display", "outline", "path") | _IMAGING = ("decode", "encode", "map", "display", "outline", "path") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user