parameters: (
          self,
          options,               # type: Values
          session,               # type: PipSession
          target_python=None,    # type: Optional[TargetPython]
          ignore_requires_python=None,  # type: Optional[bool]
      )
return_statement: return PackageFinder.create(
              search_scope=search_scope,
              selection_prefs=selection_prefs,
              trusted_hosts=options.trusted_hosts,
              session=session,
              target_python=target_python,
          )
docstring: 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.
docstring_summary: Create a package finder appropriate to this requirement command.
docstring_tokens: Create a package finder appropriate to this requirement command .
function: 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,
          )
function_tokens: 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 , )