We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1e05b3 commit 2c505c0Copy full SHA for 2c505c0
src/pip/_internal/index/package_finder.py
@@ -696,11 +696,9 @@ def set_prefer_binary(self):
696
697
def skipped_links_requires_python(self):
698
# type: () -> List[str]
699
- skips = [skip[1] for skip in self._logged_links if 'Requires-Python' in skip[1]]
700
- # cleans duplicate package version found from different links
701
- skips = list(dict.fromkeys(skips))
702
- skips.sort()
703
- return skips
+ return sorted(
+ {reason for _, reason in self._logged_links if 'Requires-Python' in reason}
+ )
704
705
def make_link_evaluator(self, project_name):
706
# type: (str) -> LinkEvaluator
0 commit comments