Bug in pip's pinned preference on packages that have a requirement ==N.*
#13030
Labels
type: bug
A confirmed bug or unintended behavior
==N.*
#13030
Description
The pip resolver prefers packages that are pinned, however it only checks the operator has the string
==
in it: https://github.com/pypa/pip/blob/24.2/src/pip/_internal/resolution/resolvelib/provider.py#L158This does not imply a pinned package, as the requirement could be
==1.*
, which is not pinned.Expected behavior
Should consider the version part of the requirement when pinning a package.
pip version
24.2
Python version
Any
OS
Any
How to Reproduce
Install a package where a transative requirement has the form
==N[.M...].*
Output
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: