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).

Co-authored-by: Dan Čermák <[email protected]>
  • Loading branch information
dirkmueller and dcermak committed Nov 28, 2024
1 parent d1ddaf0 commit 500a648
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bci_build/package/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ 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 += (
f"; 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 500a648

Please sign in to comment.