Stable Application Binary Interface
===================================
+For simplicity, this document talks about *extensions*, but the Limited API
+and Stable ABI work the same way for all uses of the API – for example,
+embedding Python.
+
.. _limited-c-api:
Limited C API
<limited-c-api>`, but also other ones – for example, functions necessary to
support older versions of the Limited API.
-(For simplicity, this document talks about *extensions*, but the Limited API
-and Stable ABI work the same way for all uses of the API – for example,
-embedding Python.)
-
On Windows, extensions that use the Stable ABI should be linked against
``python3.dll`` rather than a version-specific library such as
``python39.dll``.
.PHONY: regen-limited-abi
regen-limited-abi: all
- # Regenerate files using using Tools/build/stable_abi.py:
- # - Doc/data/stable_abi.dat
- # - Lib/test/test_stable_abi_ctypes.py
- # - Modules/_testcapi_feature_macros.inc
- # - PC/python3dll.c
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/build/stable_abi.py --generate-all $(srcdir)/Misc/stable_abi.toml
############################################################################