python 845 Bytes
[manifest]
name = python

[rpms]
python3
python3-devel

# eden_scm needs dataclasses which arrive in 3.7, and the bionic python is 3.6
[debs.not(all(distro=ubuntu,distro_vers="18.04"))]
python3-all-dev

[download]
url = https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
sha256 = 316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a

[build]
builder = autoconf
subdir = Python-3.8.12

[autoconf.args]
--enable-shared
--with-ensurepip=install

# python's pkg-config libffi detection is broken
# See https://bugs.python.org/issue34823 for clearest description
# and pending PR https://github.com/python/cpython/pull/20451
# The documented workaround requires an environment variable derived from
# pkg-config to be passed into its configure step
[autoconf.envcmd.LDFLAGS]
pkg-config
--libs-only-L
libffi

[dependencies]
libffi