mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Update stable ABI script for MacOS and update list of exported symbols (GH-23783)
This commit is contained in:
		
							parent
							
								
									7f14a3756b
								
							
						
					
					
						commit
						0911411e0c
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		|  | @ -743,6 +743,7 @@ Py_FileSystemDefaultEncodeErrors | |||
| Py_FileSystemDefaultEncoding | ||||
| Py_Finalize | ||||
| Py_FinalizeEx | ||||
| Py_FrozenMain | ||||
| Py_GenericAlias | ||||
| Py_GenericAliasType | ||||
| Py_GetBuildInfo | ||||
|  |  | |||
|  | @ -31,6 +31,7 @@ | |||
|     "ucnhash.h", | ||||
| } | ||||
| 
 | ||||
| MACOS = (sys.platform == "darwin") | ||||
| 
 | ||||
| def get_exported_symbols(library, dynamic=False): | ||||
|     # Only look at dynamic symbols | ||||
|  | @ -57,6 +58,9 @@ def get_exported_symbols(library, dynamic=False): | |||
|             continue | ||||
| 
 | ||||
|         symbol = parts[-1] | ||||
|         if MACOS and symbol.startswith("_"): | ||||
|             yield symbol[1:] | ||||
|         else: | ||||
|             yield symbol | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Pablo Galindo
						Pablo Galindo