plan#

处理安装计划及其执行。

注意

conda.install 在其接口函数中使用规范的包名称,而 conda.resolve 使用包文件名,因为这些文件名用作索引键。我们尝试将对此“阻抗失配”的修复限制在此模块内。

函数#

print_dists(dists_extras)

display_actions(actions, index[, show_channel_urls, ...])

add_unlink(actions, dist)

add_defaults_to_specs(r, linked, specs[, update, prefix])

_get_best_prec_match(precs)

revert_actions(prefix[, revision, index])

execute_actions(actions, index[, verbose])

_plan_from_actions(actions, index)

_inject_UNLINKLINKTRANSACTION(plan, index, prefix, ...)

_handle_menuinst(unlink_dists, link_dists)

install_actions(prefix, index, specs[, force, ...])

get_blank_actions(prefix)

execute_plan(old_plan[, index, verbose])

已弃用:这应该使用 conda.instructions.execute_instructions 代替。

execute_instructions(plan[, index, verbose, _commands])

执行计划中的指令

_update_old_plan(old_plan)

更新旧计划对象以与

print_dists(dists_extras)#
display_actions(actions, index, show_channel_urls=None, specs_to_remove=(), specs_to_add=())#
add_defaults_to_specs(r, linked, specs, update=False, prefix=None)#
_get_best_prec_match(precs)#
revert_actions(prefix, revision=-1, index=None)#
execute_actions(actions, index, verbose=False)#
_plan_from_actions(actions, index)#
_inject_UNLINKLINKTRANSACTION(plan, index, prefix, axn, specs)#
_handle_menuinst(unlink_dists, link_dists)#
install_actions(prefix, index, specs, force=False, only_names=None, always_copy=False, pinned=True, update_deps=True, prune=False, channel_priority_map=None, is_update=False, minimal_hint=False)#
get_blank_actions(prefix)#
execute_plan(old_plan, index=None, verbose=False)#

已弃用:这应该使用 conda.instructions.execute_instructions 代替。

execute_instructions(plan, index=None, verbose=False, _commands=None)#

执行计划中的指令 :param plan: 指令,参数 元组列表 :param index: 元数据索引 :param verbose: 详细输出 :param _commands: (仅用于测试) 将指令映射到可执行文件的字典,如果为 None,则将使用默认命令

_update_old_plan(old_plan)#

更新旧计划对象以与 conda.instructions.execute_instructions 配合使用