Skip to content

[3.8] bpo-40448: ensurepip: Do not use cache (GH-19812)#20894

Merged
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-4a3a682-3.8
Jun 15, 2020
Merged

[3.8] bpo-40448: ensurepip: Do not use cache (GH-19812)#20894
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-4a3a682-3.8

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Jun 15, 2020

ensurepip optionally installs or upgrades 'pip' and 'setuptools' using
the version of those modules bundled with Python. The internal PIP
installation routine by default temporarily uses its cache, if it
exists. This is undesirable as Python builds and installations may be
independent of the user running the build, whilst PIP cache location
is dependent on the user's environment and outside of the build
environment.

At the same time, there's no value in using the cache while installing
bundled modules.

This change disables PIP caching when used in ensurepip.
(cherry picked from commit 4a3a682)

Co-authored-by: Krzysztof Konopko kkonopko@users.noreply.github.com

https://bugs.python.org/issue40448

Automerge-Triggered-By: @ned-deily

ensurepip optionally installs or upgrades 'pip' and 'setuptools' using
the version of those modules bundled with Python.  The internal PIP
installation routine by default temporarily uses its cache, if it
exists.  This is undesirable as Python builds and installations may be
independent of the user running the build, whilst PIP cache location
is dependent on the user's environment and outside of the build
environment.

At the same time, there's no value in using the cache while installing
bundled modules.

This change disables PIP caching when used in ensurepip.
(cherry picked from commit 4a3a682)

Co-authored-by: Krzysztof Konopko <kkonopko@users.noreply.github.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@kkonopko and @ned-deily: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit a1d3be4 into python:3.8 Jun 15, 2020
@miss-islington miss-islington deleted the backport-4a3a682-3.8 branch June 15, 2020 17:45
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.

4 participants