mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Added an execution layer to be able to customize per-extension
building.
This commit is contained in:
		
							parent
							
								
									d30e587e00
								
							
						
					
					
						commit
						49c994239f
					
				
					 1 changed files with 80 additions and 79 deletions
				
			
		|  | @ -356,13 +356,16 @@ def get_outputs (self): | |||
| 
 | ||||
|     # get_outputs () | ||||
| 
 | ||||
| 
 | ||||
|     def build_extensions (self): | ||||
|     def build_extensions(self): | ||||
| 
 | ||||
|         # First, sanity-check the 'extensions' list | ||||
|         self.check_extensions_list(self.extensions) | ||||
| 
 | ||||
|         for ext in self.extensions: | ||||
|             self.build_extension(ext) | ||||
| 
 | ||||
|     def build_extension(self, ext): | ||||
| 
 | ||||
|         sources = ext.sources | ||||
|         if sources is None or type(sources) not in (ListType, TupleType): | ||||
|             raise DistutilsSetupError, \ | ||||
|  | @ -391,7 +394,7 @@ def build_extensions (self): | |||
|         if not (self.force or newer_group(sources, ext_filename, 'newer')): | ||||
|             self.announce("skipping '%s' extension (up-to-date)" % | ||||
|                           ext.name) | ||||
|                 continue # 'for' loop over all extensions | ||||
|             return | ||||
|         else: | ||||
|             self.announce("building '%s' extension" % ext.name) | ||||
| 
 | ||||
|  | @ -453,8 +456,6 @@ def build_extensions (self): | |||
|             debug=self.debug, | ||||
|             build_temp=self.build_temp) | ||||
| 
 | ||||
|     # build_extensions () | ||||
| 
 | ||||
| 
 | ||||
|     def swig_sources (self, sources): | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Marc-André Lemburg
						Marc-André Lemburg