Fix logging crash when /usr/bin/pip3 is missing

Resolves: rhbz#2143799
This commit is contained in:
Miro Hrončok 2022-11-21 14:01:31 +01:00
commit 14cce5a894
2 changed files with 76 additions and 1 deletions

View file

@ -21,7 +21,7 @@
Name: python-%{srcname}
Version: %{base_version}%{?prerel:~%{prerel}}
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A tool for installing and managing Python packages
# We bundle a lot of libraries with pip, which itself is under MIT license.
@ -94,6 +94,11 @@ Patch: no-version-warning.patch
# Resolved upstream: https://github.com/pypa/pip/pull/11353
Patch: bad-metadata-fix.patch
# Check if binary_executable exists before checking it is identical to the other one
# pip update warning had a logging error when /usr/bin/pip3 did not exist and pip3 existed on $PATH
# This is a fix from pip 22.3
Patch: https://github.com/pypa/pip/pull/11318.patch
# Downstream only patch
# Users might have local installations of pip from using
# `pip install --user --upgrade pip` on older/newer versions.
@ -406,6 +411,10 @@ pytest_k='not completion and
%{python_wheel_dir}/%{python_wheel_name}
%changelog
* Mon Nov 21 2022 Miro Hrončok <mhroncok@redhat.com> - 22.2.2-3
- Fix logging crash when /usr/bin/pip3 is missing
Resolves: rhbz#2143799
* Mon Sep 05 2022 Python Maint <python-maint@redhat.com> - 22.2.2-2
- Fix crash when an empty dist-info/egg-info is present
Resolves: rhbz#2115001