The pythoncapi-compat project can be used to write a C extension supporting a wide range of Python versions with a single code base.
... part of T2, get it here
URL: https://github.com/python/pythoncapi-compat
Author: Python Org
Maintainer: The T2 Project <t2 [at] t2-project [dot] org>
License: BSD
Status: Stable
Version: b541b98
Remark: Does cross compile (as setup and patched in T2).
Download: https://github.com/python/pythoncapi-compat/ pythoncapi-compat-b541b98.tar.gz
T2 source: pythoncapi-compat.cache
T2 source: pythoncapi-compat.desc
Build time (on reference hardware): 1% (relative to binutils)2
Installed size (on reference hardware): 0.06 MB, 7 files
Dependencies (build time detected): bash coreutils diffutils gawk grep gzip sed tar
Installed files (on reference hardware): n.a.
1) This page was automatically generated from the T2 package source. Corrections, such as dead links, URL changes or typos need to be performed directly on that source.
2) Compatible with Linux From Scratch's "Standard Build Unit" (SBU).