Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Changed the `pip install` commands used to install the pip and Poetry package managers to now use `--isolated` mode. ([#434](https://github.com/heroku/buildpacks-python/pull/434))

## [2.5.1] - 2025-09-23

### Changed
Expand Down
4 changes: 4 additions & 0 deletions src/layers/pip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ pub(crate) fn install_pip(
.args([
&bundled_pip_module_path.to_string_lossy(),
"install",
// Don't load any user-supplied pip configuration (pip.conf and `PIP_` env vars) given
// that this is an internal step for installing pip (rather than app dependencies), and
// so (a) doesn't need custom config, (b) we don't want the user to be able to break it.
"--isolated",
// There is no point using pip's cache here, since the layer itself will be cached.
"--no-cache-dir",
"--no-input",
Expand Down
4 changes: 4 additions & 0 deletions src/layers/poetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ pub(crate) fn install_poetry(
"install",
// Setting this via CLI args since for Poetry we aren't setting `PIP_DISABLE_PIP_VERSION_CHECK`.
"--disable-pip-version-check",
// Don't load any user-supplied pip configuration (pip.conf and `PIP_` env vars) given
// that this is an internal step for installing Poetry (rather than app dependencies), and
// so (a) doesn't need custom config, (b) we don't want the user to be able to break it.
"--isolated",
// There is no point using pip's cache here, since the layer itself will be cached.
"--no-cache-dir",
"--no-input",
Expand Down