mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Moved warning to end of execution
This commit is contained in:
		
							parent
							
								
									15c339470d
								
							
						
					
					
						commit
						c2890d1f10
					
				
							
								
								
									
										16
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -38,12 +38,16 @@ ZLIB_ROOT = None | |||
| 
 | ||||
| 
 | ||||
| if sys.platform == "win32" and sys.version_info >= (3, 10): | ||||
|     warnings.warn( | ||||
|         f"Pillow {PILLOW_VERSION} does not support Python " | ||||
|         f"{sys.version_info.major}.{sys.version_info.minor} and does not provide " | ||||
|         "prebuilt Windows binaries. We do not recommend building from source on " | ||||
|         "Windows.", | ||||
|         RuntimeWarning, | ||||
|     import atexit | ||||
| 
 | ||||
|     atexit.register( | ||||
|         lambda: warnings.warn( | ||||
|             f"Pillow {PILLOW_VERSION} does not support Python " | ||||
|             f"{sys.version_info.major}.{sys.version_info.minor} and does not provide " | ||||
|             "prebuilt Windows binaries. We do not recommend building from source on " | ||||
|             "Windows.", | ||||
|             RuntimeWarning, | ||||
|         ) | ||||
|     ) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user