Package: python-pip / 18.1-5

Metadata

Package Version Patches format
python-pip 18.1-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
hands off system packages.patch | (download)

src/pip/_internal/utils/misc.py | 36 27 + 9 - 0 !
1 file changed, 27 insertions(+), 9 deletions(-)

 prevent pip from removing system packages.

Adjust is_local() to consider OS-owned paths non-local.  Fix the error
message for is_local() in the non-virtualenv case.

debundle.patch | (download)

src/pip/_vendor/__init__.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 devendorize wheels and use system built wheels.

Patch-Name: debundle.patch

handle unbundled requests.patch | (download)

src/pip/_vendor/__init__.py | 8 6 + 2 - 0 !
1 file changed, 6 insertions(+), 2 deletions(-)

 debian already unbundles things from requests.

Patch-Name: handle-unbundled-requests.patch

set_user_default.patch | (download)

docs/html/user_guide.rst | 6 4 + 2 - 0 !
src/pip/_internal/commands/install.py | 26 23 + 3 - 0 !
2 files changed, 27 insertions(+), 5 deletions(-)

 default to --user in non-virtual environments.

When running as a normal user in a non-virtual environment, default to
--user.  When inside virtual environments, when running as root or when
--prefix or --target are specified, keep the default behavior.

disable pip version check.patch | (download)

src/pip/_internal/cli/cmdoptions.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 set --disable-pip-version-check=true by default.

Patch-Name: disable-pip-version-check.patch

Properly_catch_requests_HTTPError_in_index.py.patch | (download)

src/pip/_internal/index.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 properly catch requests' httperror in index.py
 This resolves issue #4195.
 .
 In index.py's index retrieval routine we were catching
 requests.HTTPError to log and ignore 404s and other similar HTTP server
 errors when pulling from (extra-)index-urls. Unfortunately, the actual
 path to that exception is requests.exceptions.HTTPError and the alias we
 were using does not work when pip is installed with unvendored libs as
 with the debian packaged pip.
 .
 Thankfully the fix is simple. Import and use
 requests.exceptions.HTTPError. This comes with the added bonus of
 fitting in with the existing handling for RetryError and SSLError. With
 this change in place upstream pip and downstream packaged pip should
 both catch this exception properly.
 .
 Note: I've not added any tests cases as I'm unsure how to test the
 distro packaging case within pip's testsuite. However, the existing test
 suite should hopefully cover that this isn't a regression and I've
 manually confirmed that this works with a hacked up debian package
 install. Also this is how we handle RetryError and SSLError.