Browse Source

Update stable ABI script for MacOS and update list of exported symbols (GH-23783)

pull/22124/head
Pablo Galindo 5 years ago
committed by GitHub
parent
commit
0911411e0c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Doc/data/stable_abi.dat
  2. 6
      Tools/scripts/stable_abi.py

1
Doc/data/stable_abi.dat

@ -743,6 +743,7 @@ Py_FileSystemDefaultEncodeErrors
Py_FileSystemDefaultEncoding
Py_Finalize
Py_FinalizeEx
Py_FrozenMain
Py_GenericAlias
Py_GenericAliasType
Py_GetBuildInfo

6
Tools/scripts/stable_abi.py

@ -31,6 +31,7 @@ EXCLUDED_HEADERS = {
"ucnhash.h",
}
MACOS = (sys.platform == "darwin")
def get_exported_symbols(library, dynamic=False):
# Only look at dynamic symbols
@ -57,7 +58,10 @@ def get_exported_symbols(library, dynamic=False):
continue
symbol = parts[-1]
yield symbol
if MACOS and symbol.startswith("_"):
yield symbol[1:]
else:
yield symbol
def check_library(stable_abi_file, library, abi_funcs, dynamic=False):

Loading…
Cancel
Save