forked from pool/python-pip
21 lines
1.2 KiB
Diff
21 lines
1.2 KiB
Diff
|
Index: pip-24.2/src/pip/_internal/cli/req_command.py
|
||
|
===================================================================
|
||
|
--- pip-24.2.orig/src/pip/_internal/cli/req_command.py
|
||
|
+++ pip-24.2/src/pip/_internal/cli/req_command.py
|
||
|
@@ -15,7 +15,6 @@ from pip._internal.cli import cmdoptions
|
||
|
from pip._internal.cli.index_command import IndexGroupCommand
|
||
|
from pip._internal.cli.index_command import SessionCommandMixin as SessionCommandMixin
|
||
|
from pip._internal.exceptions import CommandError, PreviousBuildDirError
|
||
|
-from pip._internal.index.collector import LinkCollector
|
||
|
from pip._internal.index.package_finder import PackageFinder
|
||
|
from pip._internal.models.selection_prefs import SelectionPreferences
|
||
|
from pip._internal.models.target_python import TargetPython
|
||
|
@@ -313,6 +312,7 @@ class RequirementCommand(IndexGroupComma
|
||
|
:param ignore_requires_python: Whether to ignore incompatible
|
||
|
"Requires-Python" values in links. Defaults to False.
|
||
|
"""
|
||
|
+ from pip._internal.index.collector import LinkCollector
|
||
|
link_collector = LinkCollector.create(session, options=options)
|
||
|
selection_prefs = SelectionPreferences(
|
||
|
allow_yanked=True,
|