Packages skipped by requires-python no longer show up in error message by default #13260
Open
1 task done
Labels
type: bug
A confirmed bug or unintended behavior
Description
This is only a minor issue, but when trying to install a package with a
requires-python
that you don't meet, the error message no longer provides useful information about the Python version being incompatible.For example, trying to
pip install "ipython>9"
while using Python 3.10 will result in an error, but the error message won't mention anything about a Python version incompatibility. As a user, this is confusing because ipython 9 definitely exists on PyPi, but it doesn't show up anywhere in the error message. Inpip<25
, the error message would explicitly state that version 9 was skipped due to a Python version incompatibility.The cause seems to be due to the addition of the
if not logger.isEnabledFor(logging.DEBUG)
in_log_skipped_link()
in #13128 . This change means that skipped links are not stored, sorequires_python_skipped_reasons()
returns nothing.A work around is to use
pip install -v
orpip install -vv
to see information about the Python requires incompatibilities.Expected behavior
In
pip-24.3.1
, the error message includes a line as follows:pip version
25.0.1
Python version
3.10.12
OS
Linux
How to Reproduce
pip install "ipython>9"
when using Python 3.10)Output
On pip 25.0.0 and 25.0.1:
On pip 24.3.1:
Code of Conduct
The text was updated successfully, but these errors were encountered: