From 18d11ee5944d917fc7ced4ec03f4cc05ff210edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Wed, 27 Nov 2024 14:09:30 +0100 Subject: [PATCH] Add a pip convenience symlink also for the python 3.9 container the python3.9-pip package does not provide it for historic reasons, and the testsuite expects it to be there (rightfully). --- src/bci_build/package/python.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bci_build/package/python.py b/src/bci_build/package/python.py index d7cb3f8cd..1a609169b 100644 --- a/src/bci_build/package/python.py +++ b/src/bci_build/package/python.py @@ -97,6 +97,10 @@ def _get_python_kwargs(py3_ver: _PYTHON_VERSIONS, os_version: OsVersion): config_sh_script += rf"""; ln -s /usr/bin/python{py3_ver} /usr/local/bin/python3; \ ln -s /usr/bin/pydoc{py3_ver} /usr/local/bin/pydoc""" + # broken packaging without a "pip" update-alternatives link + if py3_ver in ("3.9",): + config_sh_script += rf"""; test -e /usr/bin/pip || ln -s /usr/bin/pip{py3_ver} /usr/local/bin/pip""" + kwargs["config_sh_script"] = config_sh_script return kwargs