Skip to content

Commit

Permalink
Add a pip convenience symlink also for the python 3.9 container
Browse files Browse the repository at this point in the history
the python3.9-pip package does not provide it for historic reasons,
and the testsuite expects it to be there (rightfully).
  • Loading branch information
dirkmueller committed Nov 27, 2024
1 parent d1ddaf0 commit 18d11ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bci_build/package/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18d11ee

Please sign in to comment.