Skip to content

Fix source builds failing when the interpreter's bundled pip differs from the pip in the build environment - #10595

Merged
ashovlin merged 1 commit into
v2from
shovlia/source-install-pip-26.2-fix
Aug 24, 2026
Merged

Fix source builds failing when the interpreter's bundled pip differs from the pip in the build environment#10595
ashovlin merged 1 commit into
v2from
shovlia/source-install-pip-26.2-fix

Conversation

@ashovlin

@ashovlin ashovlin commented Aug 22, 2026

Copy link
Copy Markdown
Member

Issue #, if available: Addresses recent CI failures such as https://github.com/aws/aws-cli/actions/runs/32518930302/job/96886679998#step:5:910

Description of changes: Our source installation tests have been failing recently on the Ubuntu runners which I believe is related to a recent Python/pip upgrade in the images.

When doing the source installation in to a venv via system-sandbox, the venv is initially created containing the Python interpreter's pip version. We then copy our pinned version of pip over it, overwriting existing files, but not removing any files that were removed between pip versions. This led to an ImportError within pip's code.

Now, when we're copying the CLI's pinned dependencies into the venv, we first remove any directories for dependencies that are initially in the venv. This avoids this mix of versions.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin
ashovlin requested a review from a team as a code owner August 22, 2026 22:54
@ashovlin
ashovlin merged commit 33ce976 into v2 Aug 24, 2026
112 checks passed
@ashovlin
ashovlin deleted the shovlia/source-install-pip-26.2-fix branch August 24, 2026 14:53
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