mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	GH-128469: Revert "warn when libpython was loaded from outside the build directory (#128645)" (#129506)
This commit is contained in:
		
							parent
							
								
									674befbd7b
								
							
						
					
					
						commit
						31c82c28f9
					
				
					 2 changed files with 0 additions and 50 deletions
				
			
		| 
						 | 
				
			
			@ -785,19 +785,6 @@ def search_up(prefix, *landmarks, test=isfile):
 | 
			
		|||
    base_exec_prefix = config.get('base_exec_prefix') or EXEC_PREFIX or base_prefix
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ******************************************************************************
 | 
			
		||||
# MISC. RUNTIME WARNINGS
 | 
			
		||||
# ******************************************************************************
 | 
			
		||||
 | 
			
		||||
# When running Python from the build directory, if libpython is dynamically
 | 
			
		||||
# linked, the wrong library might be loaded.
 | 
			
		||||
if build_prefix and library and not dirname(abspath(library)).startswith(build_prefix):
 | 
			
		||||
    msg = f'The runtime library has been loaded from outside the build directory ({library})!'
 | 
			
		||||
    if os_name == 'posix':
 | 
			
		||||
        msg += ' Consider setting LD_LIBRARY_PATH=. to force it to be loaded from the build directory.'
 | 
			
		||||
    warn(msg)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ******************************************************************************
 | 
			
		||||
# SET pythonpath FROM _PTH FILE
 | 
			
		||||
# ******************************************************************************
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue