Build scripts to get deb-packaged latest Python which co-exists with system Python.
Install docker and make. Then run
make
To issue build for a particular version
make python3.12-bookworm
make python3.12-bullseye
Look at the build/
directory
The build process runs inside docker, without using cache. It was tested on Linux and macOS. The source code for building packages will be downloaded from the deadsnakes project. After the build, the simple smoke test takes place, installing all packages and running Python script.
You need Linux or macOS host with Docker installed.
You can start from Makefile
to inspect the build process.
Also, you can use pre-commit to run some checks locally before commit.
pre-commit install
All currently maintaied versions: 10 (buster), 11 (bullseye), 12 (bookworm)
Only latest version – Python 3.12
There is not much sense in that. If you need all Python versions for development, look at the pyenv project or docker images. In other cases, you can safely run old python code in the newest interpreter.
MIT, see LICENSE.