def lookup_wheel_candidates(pkg, version):
finder = PackageFinder(
find_links=[],
format_control=FormatControl(set(), set([":all:"])),
index_urls=[_DEFAULT_INDEX],
session=PipSession())
for candidate in finder.find_all_candidates(pkg):
if str(candidate.version) == version:
if candidate.location.is_wheel:
return candidate.location
return None
评论列表
文章目录