(
        self,
        options,               # type: Values
        session,               # type: PipSession
        target_python=None,    # type: Optional[TargetPython]
        ignore_requires_python=None,  # type: Optional[bool]
    )
return PackageFinder.create(
            search_scope=search_scope,
            selection_prefs=selection_prefs,
            trusted_hosts=options.trusted_hosts,
            session=session,
            target_python=target_python,
        )
Create a package finder appropriate to this requirement command.

        :param ignore_requires_python: Whether to ignore incompatible
            "Requires-Python" values in links. Defaults to False.
Create a package finder appropriate to this requirement command.
Create a package finder appropriate to this requirement command .
def _build_package_finder(
        self,
        options,               # type: Values
        session,               # type: PipSession
        target_python=None,    # type: Optional[TargetPython]
        ignore_requires_python=None,  # type: Optional[bool]
    ):
        # type: (...) -> PackageFinder
        """
        Create a package finder appropriate to this requirement command.

        :param ignore_requires_python: Whether to ignore incompatible
            "Requires-Python" values in links. Defaults to False.
        """
        search_scope = make_search_scope(options)
        selection_prefs = SelectionPreferences(
            allow_yanked=True,
            format_control=options.format_control,
            allow_all_prereleases=options.pre,
            prefer_binary=options.prefer_binary,
            ignore_requires_python=ignore_requires_python,
        )

        return PackageFinder.create(
            search_scope=search_scope,
            selection_prefs=selection_prefs,
            trusted_hosts=options.trusted_hosts,
            session=session,
            target_python=target_python,
        )
def _build_package_finder ( self , options , # type: Values session , # type: PipSession target_python = None , # type: Optional[TargetPython] ignore_requires_python = None , # type: Optional[bool] ) : # type: (...) -> PackageFinder search_scope = make_search_scope ( options ) selection_prefs = SelectionPreferences ( allow_yanked = True , format_control = options . format_control , allow_all_prereleases = options . pre , prefer_binary = options . prefer_binary , ignore_requires_python = ignore_requires_python , ) return PackageFinder . create ( search_scope = search_scope , selection_prefs = selection_prefs , trusted_hosts = options . trusted_hosts , session = session , target_python = target_python , )