[manifest]
name = python

[homebrew]
python@3.8

[rpms]
python3
python3-devel

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

[debs.not(all(distro=ubuntu,distro_vers="18.04"))]
python3-all-dev

[pps]
python3

[download]
url = https://www.python.org/ftp/python/3.8.13/Python-3.8.13.tgz
sha256 = 903b92d76354366b1d9c4434d0c81643345cef87c1600adfa36095d7b00eede4

[build]
builder = autoconf
subdir = Python-3.8.13

[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
# eden tests expect the python bz2 support
bz2
# eden tests expect the python curses support
ncurses
