https://github.com/python/cpython/commit/9bb5658bd122d40fff9f34a912be3297b30... commit: 9bb5658bd122d40fff9f34a912be3297b303d18b branch: master author: Victor Stinner <vstinner@python.org> committer: vstinner <vstinner@python.org> date: 2021-04-02T16:46:08+02:00 summary: bpo-43688: Support "make regen-limited-abi" in debug mode (GH-25133) files: M Tools/scripts/stable_abi.py diff --git a/Tools/scripts/stable_abi.py b/Tools/scripts/stable_abi.py index 14fcf2f56a207..1690cfce1727d 100755 --- a/Tools/scripts/stable_abi.py +++ b/Tools/scripts/stable_abi.py @@ -91,11 +91,6 @@ def check_library(stable_abi_file, library, abi_funcs, dynamic=False): def generate_limited_api_symbols(args): - if hasattr(sys, "gettotalrefcount"): - print( - "Stable ABI symbols cannot be generated from a debug build", file=sys.stderr - ) - sys.exit(1) library = sysconfig.get_config_var("LIBRARY") ldlibrary = sysconfig.get_config_var("LDLIBRARY") if ldlibrary != library: