mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[Patch #588809] Remove check of environment variables; sysconfig.py will do that now
This commit is contained in:
		
							parent
							
								
									22610da481
								
							
						
					
					
						commit
						47ca2bc661
					
				
					 1 changed files with 0 additions and 9 deletions
				
			
		|  | @ -451,14 +451,6 @@ def build_extension(self, ext): | |||
|         for undef in ext.undef_macros: | ||||
|             macros.append((undef,)) | ||||
| 
 | ||||
|         # XXX and if we support CFLAGS, why not CC (compiler | ||||
|         # executable), CPPFLAGS (pre-processor options), and LDFLAGS | ||||
|         # (linker options) too? | ||||
|         # XXX should we use shlex to properly parse CFLAGS? | ||||
| 
 | ||||
|         if os.environ.has_key('CFLAGS'): | ||||
|             extra_args.extend(string.split(os.environ['CFLAGS'])) | ||||
| 
 | ||||
|         objects = self.compiler.compile(sources, | ||||
|                                         output_dir=self.build_temp, | ||||
|                                         macros=macros, | ||||
|  | @ -485,7 +477,6 @@ def build_extension(self, ext): | |||
|             objects.extend(ext.extra_objects) | ||||
|         extra_args = ext.extra_link_args or [] | ||||
| 
 | ||||
| 
 | ||||
|         self.compiler.link_shared_object( | ||||
|             objects, ext_filename, | ||||
|             libraries=self.get_libraries(ext), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew M. Kuchling
						Andrew M. Kuchling