Skip to content

weastur/python-debian

Repository files navigation

Latest Python for Debian GNU/Linux

Build gitlint Lint Dockerfile pre-commit.ci status License: MIT

Build scripts to get deb-packaged latest Python which co-exists with system Python.

HowTo

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

Internals

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.

Contributing

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

FAQ

Which versions of Debian are supported?

All currently maintaied versions: 10 (buster), 11 (bullseye), 12 (bookworm)

Which versions of Python are supported?

Only latest version – Python 3.12

Why do not build all supported Python?

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.

License

MIT, see LICENSE.