FAQ | This is a LIVE service | Changelog

Skip to content

fix: add apt dependencies to allow psycopg build

Dr Rich Wareham requested to merge python-3.13-fixes into master

The psycopg2-binary packages are not available from PyPI with 3.13 wheels and the docs recommend that one install the package from source when possible. Upstream users of this image tend to (incorrectly, it turn out) specify psycopg2-binary as a dependency and so this isn't an option. Even if we install the psycopg package in this image, downstream users will end up trying to install psycopg2-binary. The psycopg2-binary package will fall back to source builds, we just need to ensure that the required apt dependencies are installed. Since only versions of Python after 3.13 need to use the source image, add some logic to the dynamic job creator to understand this.

Example pipeline using this MR: https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/pipelines/623335

Closes #98 (closed)

Edited by Dr Rich Wareham

Merge request reports

Loading