Skip to content

Commit

Permalink
Merge pull request #2077 from SUSE/python39_pip
Browse files Browse the repository at this point in the history
Add a pip convenience symlink also for the python 3.9 container
  • Loading branch information
dcermak authored Nov 28, 2024
2 parents 6b65cb9 + 500a648 commit 893a154
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 893a154

Please sign in to comment.