This page describes cpythons, a script that builds CPython
versions, old to new. At the time of this writing, it builds CPython 0.9.1 through the second CPython 3.9.
Usage is like:
$ ./cpythons --help
cmd output started 2018 Sun Jan 28 10:33:52 AM PST
Usage: ./cpythons --which-pythons 'python-2.7 python-3.4'
./cpythons --which-pythons all
--skip-gtk
--skip-numerical
--skip-cleanup do not remove build temporaries
As suggested above, it can build gtk (gobject introspection) and numpy.
It is particularly useful with the pythons script I wrote,
which will run a Python snippet on a variety of Python interpreters and summarize the results.