Skip to content

Fix pip bootstrap on Python 3.9: use version-pinned get-pip.py#253

Merged
gillespeiffer-db merged 1 commit into
release-12.2-LTSfrom
fix-pip-bootstrap-py39-12.2-LTS
Jun 4, 2026
Merged

Fix pip bootstrap on Python 3.9: use version-pinned get-pip.py#253
gillespeiffer-db merged 1 commit into
release-12.2-LTSfrom
fix-pip-bootstrap-py39-12.2-LTS

Conversation

@gillespeiffer-db
Copy link
Copy Markdown
Collaborator

@gillespeiffer-db gillespeiffer-db commented Jun 3, 2026

What

ubuntu/python/Dockerfile bootstraps pip from the rolling https://bootstrap.pypa.io/get-pip.py. pip 26.1 raised that script's minimum to Python 3.10, so on this Python 3.9 release line it now errors:

ERROR: This script does not work on Python 3.9. The minimum supported Python version is 3.10. Please use https://bootstrap.pypa.io/pip/3.9/get-pip.py instead.

This breaks the python image build.

Change

Use the version-pinned bootstrap URL that pip's own error message recommends:

https://bootstrap.pypa.io/pip/${python_version}/get-pip.py

(python_version is already 3.9 here.) This is the same fix already shipped on release-10.4-LTS for Python 3.8 in #222, when pip 25.1 dropped 3.8. The pinned URL is frozen upstream for the 3.9 line, so future pip releases dropping newer Python versions can't break it again.

Testing

  • Verified the pinned URL serves a get-pip with min_version = (3, 9) (the rolling script is now (3, 10)).
  • The python image build will be validated via the standard image rebuild.

pip 26.1 raised the minimum supported Python in the rolling
https://bootstrap.pypa.io/get-pip.py to 3.10, so it now errors out on
Python 3.9. Switch to the version-pinned URL that pip's own error
message recommends, matching the existing release-10.4-LTS fix that
did the same for Python 3.8.
@gillespeiffer-db gillespeiffer-db merged commit 9039e19 into release-12.2-LTS Jun 4, 2026
@gillespeiffer-db gillespeiffer-db deleted the fix-pip-bootstrap-py39-12.2-LTS branch June 4, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants