parameters: (
          cls,
          link_collector,      # type: LinkCollector
          selection_prefs,     # type: SelectionPreferences
          target_python=None,  # type: Optional[TargetPython]
      )
return_statement: return cls(
              candidate_prefs=candidate_prefs,
              link_collector=link_collector,
              target_python=target_python,
              allow_yanked=selection_prefs.allow_yanked,
              format_control=selection_prefs.format_control,
              ignore_requires_python=selection_prefs.ignore_requires_python,
          )
docstring: Create a PackageFinder.
  
          :param selection_prefs: The candidate selection preferences, as a
              SelectionPreferences object.
          :param target_python: The target Python interpreter to use when
              checking compatibility. If None (the default), a TargetPython
              object will be constructed from the running Python.
docstring_summary: Create a PackageFinder.
docstring_tokens: Create a PackageFinder .
function: def create(
          cls,
          link_collector,      # type: LinkCollector
          selection_prefs,     # type: SelectionPreferences
          target_python=None,  # type: Optional[TargetPython]
      ):
          # type: (...) -> PackageFinder
          """Create a PackageFinder.
  
          :param selection_prefs: The candidate selection preferences, as a
              SelectionPreferences object.
          :param target_python: The target Python interpreter to use when
              checking compatibility. If None (the default), a TargetPython
              object will be constructed from the running Python.
          """
          if target_python is None:
              target_python = TargetPython()
  
          candidate_prefs = CandidatePreferences(
              prefer_binary=selection_prefs.prefer_binary,
              allow_all_prereleases=selection_prefs.allow_all_prereleases,
          )
  
          return cls(
              candidate_prefs=candidate_prefs,
              link_collector=link_collector,
              target_python=target_python,
              allow_yanked=selection_prefs.allow_yanked,
              format_control=selection_prefs.format_control,
              ignore_requires_python=selection_prefs.ignore_requires_python,
          )
function_tokens: def create ( cls , link_collector , # type: LinkCollector selection_prefs , # type: SelectionPreferences target_python = None , # type: Optional[TargetPython] ) : # type: (...) -> PackageFinder if target_python is None : target_python = TargetPython ( ) candidate_prefs = CandidatePreferences ( prefer_binary = selection_prefs . prefer_binary , allow_all_prereleases = selection_prefs . allow_all_prereleases , ) return cls ( candidate_prefs = candidate_prefs , link_collector = link_collector , target_python = target_python , allow_yanked = selection_prefs . allow_yanked , format_control = selection_prefs . format_control , ignore_requires_python = selection_prefs . ignore_requires_python , )