]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h (GH-138545)
authorPetr Viktorin <encukou@gmail.com>
Mon, 8 Sep 2025 10:02:13 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 10:02:13 +0000 (12:02 +0200)
commit097c563e7bd6757192670b54a8f9cf7c3c77cf04
tree7e2369f6e70f5dbcf22f059c1a378036384752f6
parent3255c0c87057dbb35b3aa236f81d6e11c100fdcc
gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h (GH-138545)

Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h

This allows removing #include "modsupport.h" from python_ver_rc.h,
which allows modsupport.h to use common helpers from Python.h --
specifically, `_Py_PACK_VERSION` for defining limited API.
Include/modsupport.h
Include/patchlevel.h
PC/python_ver_rc.h