conda
0.0.0.dev0+placeholder
  • User guide
  • Conda configuration
  • Command reference
  • Glossary
  • Developer guide
    • Architecture
    • Contributing to Conda
    • Development Environment
    • Deep dives
    • Writing Tests
    • Deprecations
    • Releasing
    • Plugins
    • Specifications
    • API
      • conda
        • __main__
        • __version__
        • _vendor
        • activate
        • api
        • auxlib
        • base
        • cli
        • common
        • core
          • envs_manager
          • index
          • initialize
          • link
          • package_cache
          • package_cache_data
          • path_actions
          • portability
          • prefix_data
          • solve
          • subdir_data
        • deprecations
        • exception_handler
        • exceptions
        • exports
        • gateways
        • history
        • instructions
        • misc
        • models
        • notices
        • plan
        • plugins
        • resolve
        • testing
        • trust
        • utils
      • conda_env
  • Release notes
conda
  • Developer guide
  • API
  • conda
  • core
  • link
  • View page source

link

Package installation implemented as a series of link/unlink transactions.

Classes

PrefixSetup

ActionGroup

PrefixActionGroup

ChangeReport

UnlinkLinkTransaction

Functions

determine_link_type(extracted_package_dir, target_prefix)

make_unlink_actions(transaction_context, ...)

match_specs_to_dists(packages_info_to_link, specs)

run_script(→ bool)

Call the post-link (or pre-unlink) script, returning True on success,

messages(prefix)

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

target_prefix: str
unlink_precs: Iterable[conda.models.records.PackageRecord]
link_precs: Iterable[conda.models.records.PackageRecord]
remove_specs: Iterable[conda.resolve.MatchSpec]
update_specs: Iterable[conda.resolve.MatchSpec]
neutered_specs: Iterable[conda.resolve.MatchSpec]
class ActionGroup

Bases: NamedTuple

type: str
pkg_data: PackageInfo | None
actions: Iterable[conda.core.path_actions._Action]
target_prefix: str
class PrefixActionGroup

Bases: NamedTuple

remove_menu_action_groups: Iterable[ActionGroup]
unlink_action_groups: Iterable[ActionGroup]
unregister_action_groups: Iterable[ActionGroup]
link_action_groups: Iterable[ActionGroup]
register_action_groups: Iterable[ActionGroup]
compile_action_groups: Iterable[ActionGroup]
make_menu_action_groups: Iterable[ActionGroup]
entry_point_action_groups: Iterable[ActionGroup]
prefix_record_groups: Iterable[ActionGroup]
class ChangeReport

Bases: NamedTuple

prefix: str
specs_to_remove: Iterable[conda.resolve.MatchSpec]
specs_to_add: Iterable[conda.resolve.MatchSpec]
removed_precs: Iterable[conda.models.records.PackageRecord]
new_precs: Iterable[conda.models.records.PackageRecord]
updated_precs: Iterable[conda.models.records.PackageRecord]
downgraded_precs: Iterable[conda.models.records.PackageRecord]
superseded_precs: Iterable[conda.models.records.PackageRecord]
fetch_precs: 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_version(target_prefix, pcrecs_to_unlink, packages_info_to_link)
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)
Previous Next

© Copyright 2017, Anaconda, Inc.

Built with Sphinx using a theme provided by Read the Docs.