本文整理匯總了Python中tracker.Tracker.findDeps方法的典型用法代碼示例。如果您正苦於以下問題:Python Tracker.findDeps方法的具體用法?Python Tracker.findDeps怎麽用?Python Tracker.findDeps使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tracker.Tracker
的用法示例。
在下文中一共展示了Tracker.findDeps方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1:
# 需要導入模塊: from tracker import Tracker [as 別名]
# 或者: from tracker.Tracker import findDeps [as 別名]
sys.exit(1)
# search dependencies
for po in pkg_list:
track.unprocessed[po.pkgtup] = po
while cli.more_to_check(track.unprocessed):
for pkgtup in track.unprocessed.keys():
# if always processed then continue from next package
if track.unprocessed[pkgtup] is None:
continue
po = track.unprocessed[pkgtup]
final_pkgs[po.pkgtup] = po
deps_list = track.findDeps(po, options)
# deps found, set None for while loop
track.unprocessed[po.pkgtup] = None
for dep in deps_list:
if dep.pkgtup not in track.unprocessed:
track.unprocessed[dep.pkgtup] = dep
# get final list with newest versions
download_list = final_pkgs.values()
# sort download list
download_list.sort(cli.sortPkgObj)
# counter
i = 0