mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.
Don't assume that the 'libraries' and 'library_dirs' elements of the build info dict are always lists.
This commit is contained in:
		
							parent
							
								
									272cbb4974
								
							
						
					
					
						commit
						4ba5da418c
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -245,7 +245,6 @@ def build_extensions (self, extensions): | |||
|             include_dirs = build_info.get ('include_dirs') | ||||
|             objects = self.compiler.compile (sources, | ||||
|                                              output_dir=self.build_temp, | ||||
|                                              keep_dir=1, | ||||
|                                              macros=macros, | ||||
|                                              include_dirs=include_dirs, | ||||
|                                              debug=self.debug) | ||||
|  | @ -256,8 +255,10 @@ def build_extensions (self, extensions): | |||
|             extra_objects = build_info.get ('extra_objects') | ||||
|             if extra_objects: | ||||
|                 objects.extend (extra_objects) | ||||
|             libraries = self.libraries + build_info.get ('libraries') | ||||
|             library_dirs = self.library_dirs + build_info.get ('library_dirs') | ||||
|             libraries = (self.libraries + | ||||
|                          (build_info.get ('libraries') or [])) | ||||
|             library_dirs = (self.library_dirs + | ||||
|                             (build_info.get ('library_dirs') or [])) | ||||
|             extra_args = build_info.get ('extra_link_args') or [] | ||||
| 
 | ||||
|             if self.compiler.compiler_type == 'msvc': | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Greg Ward
						Greg Ward