mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Bug #999767: make setup.py obey Setup.local wrt shared modules
This commit is contained in:
		
							parent
							
								
									cd4d1e8b46
								
							
						
					
					
						commit
						e08fa29d0e
					
				
					 1 changed files with 11 additions and 10 deletions
				
			
		
							
								
								
									
										21
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										21
									
								
								setup.py
									
										
									
									
									
								
							|  | @ -148,17 +148,18 @@ def build_extensions(self): | |||
|                 self.extensions.remove(ext) | ||||
| 
 | ||||
|         if platform != 'mac': | ||||
|             # Parse Modules/Setup to figure out which modules are turned | ||||
|             # on in the file. | ||||
|             input = text_file.TextFile('Modules/Setup', join_lines=1) | ||||
|             # Parse Modules/Setup and Modules/Setup.local to figure out which | ||||
|             # modules are turned on in the file. | ||||
|             remove_modules = [] | ||||
|             while 1: | ||||
|                 line = input.readline() | ||||
|                 if not line: break | ||||
|                 line = line.split() | ||||
|                 remove_modules.append( line[0] ) | ||||
|             input.close() | ||||
| 
 | ||||
|             for filename in ('Modules/Setup', 'Modules/Setup.local'): | ||||
|                 input = text_file.TextFile(filename, join_lines=1) | ||||
|                 while 1: | ||||
|                     line = input.readline() | ||||
|                     if not line: break | ||||
|                     line = line.split() | ||||
|                     remove_modules.append(line[0]) | ||||
|                 input.close() | ||||
|      | ||||
|             for ext in self.extensions[:]: | ||||
|                 if ext.name in remove_modules: | ||||
|                     self.extensions.remove(ext) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue