mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	distutils was removed in November. However, the c-analyzer relies on it. To solve that here, we vendor the parts the tool needs so it can be run against 3.12+. (Also see gh-92584.) Note that we may end up removing this code later in favor of a solution in common with the peg_generator tool (which also relies on distutils). At the least, the copy here makes sure the c-analyzer tool works on 3.12+ in the meantime.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			139 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			139 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import os
 | 
						|
 | 
						|
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
 | 
						|
# debug mode.
 | 
						|
DEBUG = os.environ.get('DISTUTILS_DEBUG')
 |