Use pip install --isolated when bootstrapping pip/Poetry#434
Merged
Conversation
So that any invalid global pip config (set via either `PIP_*` env vars or global pip config files in the HOME directory) don't affect/break the bootstrapping of the package managers. (Such config is still loaded during the later `pip install` used to install the app's own dependencies; this change only affects the internal buildpack bootstrapping stage.) We don't have to update the uv installation step, since that doesn't use pip, since uv is a Rust binary installed from GitHub Releases. This is the CNB equivalent of: heroku/heroku-buildpack-python#1915 See: - https://pip.pypa.io/en/stable/cli/pip/#cmdoption-isolated - https://pip.pypa.io/en/stable/topics/configuration/ GUS-W-19770487.
Malax
approved these changes
Oct 2, 2025
heroku-linguist bot
added a commit
that referenced
this pull request
Oct 5, 2025
## heroku/python ### Changed - Changed the `pip install` commands used to install the pip and Poetry package managers to now use `--isolated` mode. ([#434](#434)) - Added more Python project related file and directory names to the list recognised by buildpack detection. ([#435](#435)) - Updated uv from 0.8.20 to 0.8.23. ([#431](#431) and [#436](#436))
Merged
heroku-linguist bot
added a commit
to heroku/cnb-builder-images
that referenced
this pull request
Oct 5, 2025
## heroku/python ### Changed - Changed the `pip install` commands used to install the pip and Poetry package managers to now use `--isolated` mode. ([#434](heroku/buildpacks-python#434)) - Added more Python project related file and directory names to the list recognised by buildpack detection. ([#435](heroku/buildpacks-python#435)) - Updated uv from 0.8.20 to 0.8.23. ([#431](heroku/buildpacks-python#431) and [#436](heroku/buildpacks-python#436))
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.
So that any invalid global pip config (set via either
PIP_*env vars or globalpip.confconfig files in the HOME directory) don't affect/break the bootstrapping of the package managers.(Such config is still loaded during the later
pip installused to install the app's own dependencies; this change only affects the internal buildpack bootstrapping stage.)We don't have to update the uv installation step, since that doesn't use pip, since uv is a Rust binary installed from GitHub Releases.
This is the CNB equivalent of:
heroku/heroku-buildpack-python#1915
See:
GUS-W-19770487.