Python packaging on Divio Cloud

Python packages in Divio Cloud projects are installed using pip.

The appropriate section in the Dockerfile processes the project’s requirements.in (or, if you have pinned all dependencies, its requirements.in).

We maintain our own DevPi server for private packages, and a Python wheels proxy.

Our wheels proxy creates wheels for all packages on PyPI.

Using wheels reduces installation times significantly, because the process does not need to compile binaries - it can instead download our platform-specific binaries.

Using wheels also allows us to perform additional dependency resolution during installation.