fix(python): use version-specific pip URL for older Python versions#119
Merged
CalvinAllen merged 2 commits intomainfrom Dec 12, 2025
Merged
fix(python): use version-specific pip URL for older Python versions#119CalvinAllen merged 2 commits intomainfrom
CalvinAllen merged 2 commits intomainfrom
Conversation
The main get-pip.py no longer supports end-of-life Python versions. For Python 3.8 and below, use version-specific URLs like: https://bootstrap.pypa.io/pip/3.8/get-pip.py Also fixes the fallback instructions to not reference ensurepip, which is not available in Windows embeddable Python packages. Fixes #113
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getPipURL()function to determine the correct get-pip.py URL based on Python versionhttps://bootstrap.pypa.io/pip/3.8/get-pip.py)https://bootstrap.pypa.io/get-pip.py)ensurepip(not available in Windows embeddable packages)Changes
src/runtimes/python/provider.go: AddedgetPipURL()function and updatedinstallPip()andinstallPipIfNeeded()src/runtimes/python/provider_test.go: Added tests for URL selection logicNew fallback message
Test plan
getPipURL)Fixes #113