Skip to content

Stop installing pip into Poetry's virtual environment #1761

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

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

edmorley
Copy link
Member

This is an alternative approach to installing Poetry that means we can skip installing pip into its virtual environment, but still support the outdated Python versions which bundle older pip (that don't support the --python option; see #1687) or that don't correctly isolate the environment when running ensurepip (see #1698).

Skipping installing pip speeds up the cold cache build for Poetry slightly, and also reduces the build cache size (which will help with the cache save and restore times for warm builds too).

The pip installed in the Poetry venv wasn't exposed to apps (since it wasn't on PATH) so is safe to remove.

GUS-W-17895154.

This is an alternative approach to installing Poetry that means we can
skip installing pip into its virtual environment, but still support
the outdated Python versions which bundle older pip (that don't support
the `--python` option; see #1687) or that don't correctly isolate the
environment when running `ensurepip` (see #1698).

Skipping installing pip speeds up the cold cache build for Poetry
slightly, and also reduces the build cache size (which will help with
the cache save and restore times for warm builds too).

The pip installed in the Poetry venv wasn't exposed to apps (since it
wasn't on `PATH`) so is safe to remove.

GUS-W-17895154.
@edmorley edmorley self-assigned this Feb 24, 2025
@edmorley edmorley marked this pull request as ready for review February 24, 2025 13:49
@edmorley edmorley requested a review from a team as a code owner February 24, 2025 13:49
@edmorley edmorley enabled auto-merge (squash) February 24, 2025 14:18
@edmorley edmorley merged commit 992f51d into main Feb 24, 2025
8 checks passed
@edmorley edmorley deleted the poetry-no-pip branch February 24, 2025 14:35
@heroku-linguist heroku-linguist bot mentioned this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants