def _build_package_finder(<EOL>self,<EOL>options,               <EOL>session,               <EOL>platform=None,         <EOL>python_versions=None,  <EOL>abi=None,              <EOL>implementation=None    <EOL>):<EOL>
index_urls = [options.index_url] + options.extra_index_urls<EOL>if options.no_index:<EOL><INDENT>logger.debug(<EOL>'<STR_LIT>',<EOL>'<STR_LIT:U+002C>'.join(redact_password_from_url(url) for url in index_urls),<EOL>)<EOL>index_urls = []<EOL><DEDENT>return PackageFinder(<EOL>find_links=options.find_links,<EOL>format_control=options.format_control,<EOL>index_urls=index_urls,<EOL>trusted_hosts=options.trusted_hosts,<EOL>allow_all_prereleases=options.pre,<EOL>session=session,<EOL>platform=platform,<EOL>versions=python_versions,<EOL>abi=abi,<EOL>implementation=implementation,<EOL>prefer_binary=options.prefer_binary,<EOL>)<EOL>
Create a package finder appropriate to this requirement command.