mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Replace deprecated platform.dist with file existence check
This commit is contained in:
		
							parent
							
								
									0e70b11ec6
								
							
						
					
					
						commit
						9f9dc9379d
					
				
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -313,7 +313,7 @@ class pil_build_ext(build_ext): | |||
|         elif sys.platform.startswith("linux"): | ||||
|             arch_tp = (plat.processor(), plat.architecture()[0]) | ||||
|             # This should be correct on debian derivatives. | ||||
|             if plat.dist()[0].lower() in ('debian', 'ubuntu'): | ||||
|             if os.path.exists('/etc/debian_version'): | ||||
|                 # If this doesn't work, don't just silently patch | ||||
|                 # downstream because it's going to break when people | ||||
|                 # try to build pillow from source instead of | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user