mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Add environment variables for settings component prefixes
This commit is contained in:
		
							parent
							
								
									9bdb9d8bef
								
							
						
					
					
						commit
						ddb01ac67e
					
				
							
								
								
									
										5
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -245,6 +245,11 @@ class pil_build_ext(build_ext): | ||||||
|                                         IMAGEQUANT_ROOT="libimagequant" |                                         IMAGEQUANT_ROOT="libimagequant" | ||||||
|                                         ).items(): |                                         ).items(): | ||||||
|             root = globals()[root_name] |             root = globals()[root_name] | ||||||
|  | 
 | ||||||
|  |             if root is None and root_name in os.environ: | ||||||
|  |                 prefix = os.environ[root_name] | ||||||
|  |                 root = (os.path.join(prefix, 'lib'), os.path.join(prefix, 'include')) | ||||||
|  | 
 | ||||||
|             if root is None and pkg_config: |             if root is None and pkg_config: | ||||||
|                 if isinstance(lib_name, tuple): |                 if isinstance(lib_name, tuple): | ||||||
|                     for lib_name2 in lib_name: |                     for lib_name2 in lib_name: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user