mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Rearrange lib directory detection, fixes #587
This commit is contained in:
		
							parent
							
								
									cc8677e0df
								
							
						
					
					
						commit
						cde7e3e279
					
				
							
								
								
									
										7
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -226,7 +226,12 @@ class pil_build_ext(build_ext):
 | 
			
		|||
            _add_directory(include_dirs, "/usr/X11/include")
 | 
			
		||||
 | 
			
		||||
        elif sys.platform.startswith("linux"):
 | 
			
		||||
            for platform_ in (plat.architecture()[0], plat.processor()):
 | 
			
		||||
            arch_tp = (plat.processor(), plat.architecture()[0])
 | 
			
		||||
            if arch_tp == ("x86_64","32bit"):
 | 
			
		||||
                # 32 bit build on 64 bit machine. 
 | 
			
		||||
                _add_directory(library_dirs, "/usr/lib/i386-linux-gnu")
 | 
			
		||||
            else:
 | 
			
		||||
                for platform_ in arch_tp:
 | 
			
		||||
 | 
			
		||||
                    if not platform_:
 | 
			
		||||
                        continue
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user