link
#
Package installation implemented as a series of link/unlink transactions.
Classes#
A container for groups of actions carried out during an UnlinkLinkTransaction. |
|
Functions#
|
|
|
|
|
|
|
Call the post-link (or pre-unlink) script, returning True on success, |
|
- determine_link_type(extracted_package_dir, target_prefix)#
- make_unlink_actions(transaction_context, target_prefix, prefix_record)#
- match_specs_to_dists(packages_info_to_link, specs)#
- class PrefixSetup#
Bases:
NamedTuple
- unlink_precs: tuple[conda.models.records.PackageRecord, Ellipsis]#
- link_precs: tuple[conda.models.records.PackageRecord, Ellipsis]#
- class ActionGroup#
Bases:
NamedTuple
- pkg_data: conda.models.package_info.PackageInfo | None#
- class PrefixActions#
A container for groups of actions carried out during an UnlinkLinkTransaction.
- Parameters:
remove_menu_action_groups -- Actions which remove menu items
unlink_action_groups -- Actions which unlink files
unregister_action_groups -- Actions which unregister environment locations
link_action_groups -- Actions which link files
register_action_groups -- Actions which register environment locations
compile_action_groups -- Actions which compile pyc files
make_menu_action_groups -- Actions which create menu items
entry_point_action_groups -- Actions which create python entry points
prefix_record_groups -- Actions which create package json files in
conda-meta/
initial_action_groups -- User-defined actions which run before all other actions
final_action_groups -- User-defined actions which run after all other actions
- unlink_action_groups: collections.abc.Iterable[ActionGroup]#
- unregister_action_groups: collections.abc.Iterable[ActionGroup]#
- link_action_groups: collections.abc.Iterable[ActionGroup]#
- register_action_groups: collections.abc.Iterable[ActionGroup]#
- compile_action_groups: collections.abc.Iterable[ActionGroup]#
- entry_point_action_groups: collections.abc.Iterable[ActionGroup]#
- prefix_record_groups: collections.abc.Iterable[ActionGroup]#
- initial_action_groups: collections.abc.Iterable[ActionGroup] = ()#
- final_action_groups: collections.abc.Iterable[ActionGroup] = ()#
- __iter__() collections.abc.Generator[collections.abc.Iterable[ActionGroup], None, None] #
- class PrefixActionGroup#
Bases:
NamedTuple
- unlink_action_groups: collections.abc.Iterable[ActionGroup]#
- unregister_action_groups: collections.abc.Iterable[ActionGroup]#
- link_action_groups: collections.abc.Iterable[ActionGroup]#
- register_action_groups: collections.abc.Iterable[ActionGroup]#
- compile_action_groups: collections.abc.Iterable[ActionGroup]#
- entry_point_action_groups: collections.abc.Iterable[ActionGroup]#
- prefix_record_groups: collections.abc.Iterable[ActionGroup]#
- class ChangeReport#
Bases:
NamedTuple
- specs_to_remove: collections.abc.Iterable[conda.resolve.MatchSpec]#
- specs_to_add: collections.abc.Iterable[conda.resolve.MatchSpec]#
- removed_precs: collections.abc.Iterable[conda.models.records.PackageRecord]#
- updated_precs: collections.abc.Iterable[conda.models.records.PackageRecord]#
- downgraded_precs: collections.abc.Iterable[conda.models.records.PackageRecord]#
- superseded_precs: collections.abc.Iterable[conda.models.records.PackageRecord]#
- fetch_precs: collections.abc.Iterable[conda.models.records.PackageRecord]#
- revised_precs: collections.abc.Iterable[conda.models.records.PackageRecord]#
- class UnlinkLinkTransaction(*setups)#
- property nothing_to_do#
- download_and_extract()#
- prepare()#
- verify()#
- _verify_pre_link_message(all_link_groups)#
- execute()#
- _get_pfe()#
- classmethod _prepare(transaction_context, target_prefix, unlink_precs, link_precs, remove_specs, update_specs, neutered_specs)#
- static _verify_individual_level(prefix_action_group)#
- static _verify_prefix_level(target_prefix_AND_prefix_action_group_tuple)#
- static _verify_transaction_level(prefix_setups)#
- _verify(prefix_setups, prefix_action_groups)#
- _execute(all_action_groups)#
- static _execute_actions(axngroup)#
- static _execute_post_link_actions(axngroup)#
- static _reverse_actions(axngroup, reverse_from_idx=-1)#
- static _get_python_info(target_prefix, prefix_recs_to_unlink, packages_info_to_link) tuple[str | None, str | None] #
Return the python version and location of the site-packages directory at the end of the transaction
- static _make_link_actions(transaction_context, package_info, target_prefix, requested_link_type, requested_spec)#
- static _make_entry_point_actions(transaction_context, package_info, target_prefix, requested_link_type, requested_spec, link_action_groups)#
- static _make_compile_actions(transaction_context, package_info, target_prefix, requested_link_type, requested_spec, link_action_groups)#
- _make_legacy_action_groups()#
- print_transaction_summary()#
- _change_report_str(change_report)#
- static _calculate_change_report(prefix, unlink_precs, link_precs, download_urls, specs_to_remove, specs_to_add)#
- run_script(prefix: str, prec, action: str = 'post-link', env_prefix: str = None, activate: bool = False) bool #
Call the post-link (or pre-unlink) script, returning True on success, False on failure.
- messages(prefix)#