-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
images/bootstrap: Allow pip an external python installation #30695
images/bootstrap: Allow pip an external python installation #30695
Conversation
Follow of: - kubernetes#30409 the image failed to build with: ``` Step #1: ╰─> To install Python packages system-wide, try apt install Step #1: python3-xyz, where xyz is the package you are trying to Step #1: install. Step #1: Step #1: If you wish to install a non-Debian-packaged Python package, Step #1: create a virtual environment using python3 -m venv path/to/venv. Step #1: Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make Step #1: sure you have python3-full installed. Step #1: Step #1: If you wish to install a non-Debian packaged Python application, Step #1: it may be easiest to use pipx install xyz, which will manage a Step #1: virtual environment for you. Make sure you have pipx installed. Step #1: Step #1: See /usr/share/doc/python3.11/README.venv for more information. ``` Starting with bookworm, pip enforces [PEP 668](https://peps.python.org/pep-0668/). This is an attempt to ensure we don't break python packages installation. Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
/retest |
@@ -51,7 +51,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |||
zip \ | |||
zlib1g-dev \ | |||
&& rm -rf /var/lib/apt/lists/* \ | |||
&& python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel | |||
&& python3 -m pip install --no-cache-dir --break-system-packages --upgrade pip setuptools wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:this-is-fine:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
🙈
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ameukam, BenTheElder The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-test-infra-unit-test |
Failed during docker installation: https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/post-test-infra-push-bootstrap/1701711340688642048. |
Switching distros requires patching this. |
Follow-up of: - kubernetes#30695 Ensure docker installation on bookworm Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
Follow of:
the image failed to build with:
Starting with bookworm, pip enforces PEP 668.
This is an attempt to ensure we don't break python packages installation.