mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	setup.py: CPATH is an alternative for C_INCLUDE_PATH
This commit is contained in:
		
							parent
							
								
									3cc3548c15
								
							
						
					
					
						commit
						3d89ce2078
					
				
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -226,7 +226,7 @@ class pil_build_ext(build_ext):
 | 
			
		|||
                    _add_directory(library_dirs, match.group(1))
 | 
			
		||||
 | 
			
		||||
        # include, rpath, if set as environment variables:
 | 
			
		||||
        for k in ('C_INCLUDE_PATH', 'INCLUDE'):
 | 
			
		||||
        for k in ('C_INCLUDE_PATH', 'CPATH', 'INCLUDE'):
 | 
			
		||||
            if k in os.environ:
 | 
			
		||||
                for d in os.environ[k].split(os.path.pathsep):
 | 
			
		||||
                    _add_directory(include_dirs, d)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user