mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Compile the files in the same order they are passed to the compiler.
Use case: Sometimes 'compiling' source files (with SWIG, for example) creates additionl files which included by later sources. The win32all setup script requires this. There is no SF item for this, but it was discussed on distutils-sig: http://mail.python.org/pipermail/distutils-sig/2003-November/003514.html
This commit is contained in:
		
							parent
							
								
									f96dd83bb4
								
							
						
					
					
						commit
						9436a75e4d
					
				
					 3 changed files with 15 additions and 3 deletions
				
			
		|  | @ -691,7 +691,11 @@ def compile(self, sources, output_dir=None, macros=None, | |||
|                                     depends, extra_postargs) | ||||
|         cc_args = self._get_cc_args(pp_opts, debug, extra_preargs) | ||||
| 
 | ||||
|         for obj, (src, ext) in build.items(): | ||||
|         for obj in objects: | ||||
|             try: | ||||
|                 src, ext = build[obj] | ||||
|             except KeyError: | ||||
|                 continue | ||||
|             self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) | ||||
| 
 | ||||
|         # Return *all* object filenames, not just the ones we just built. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thomas Heller
						Thomas Heller