path_actions#
Atomic actions that make up a package installation or removal transaction.
Classes#
Bunch up all of our compile actions, so that they all get carried out at once. |
|
Attributes#
- FileNotFoundError#
- _MENU_RE#
- REPR_IGNORE_KWARGS = ('transaction_context', 'package_info', 'hold_path')#
- class _Action#
- property verified#
- _verified = False#
- abstract verify()#
- abstract execute()#
- abstract reverse()#
- abstract cleanup()#
- __repr__()#
Return repr(self).
- class PrefixPathAction(transaction_context, target_prefix, target_short_path)#
Bases:
PathAction- property target_short_paths#
- property target_full_path#
- class CreateInPrefixPathAction(transaction_context, package_info, source_prefix, source_short_path, target_prefix, target_short_path)#
Bases:
PrefixPathAction- property source_full_path#
- verify()#
- cleanup()#
- class LinkPathAction(transaction_context, package_info, extracted_package_dir, source_short_path, target_prefix, target_short_path, link_type, source_path_data)#
Bases:
CreateInPrefixPathAction- classmethod create_file_link_actions(transaction_context, package_info, target_prefix, requested_link_type)#
- classmethod create_directory_actions(transaction_context, package_info, target_prefix, requested_link_type, file_link_actions)#
- classmethod create_python_entry_point_windows_exe_action(transaction_context, package_info, target_prefix, requested_link_type, entry_point_def)#
- verify()#
- execute()#
- reverse()#
- class PrefixReplaceLinkAction(transaction_context, package_info, extracted_package_dir, source_short_path, target_prefix, target_short_path, link_type, prefix_placeholder, file_mode, source_path_data)#
Bases:
LinkPathAction- verify()#
- execute()#
- class MakeMenuAction(transaction_context, package_info, target_prefix, target_short_path)#
Bases:
CreateInPrefixPathAction- classmethod create_actions(transaction_context, package_info, target_prefix, requested_link_type)#
- execute()#
- reverse()#
- class CompileMultiPycAction(transaction_context, package_info, target_prefix, source_short_paths, target_short_paths)#
Bases:
MultiPathAction- property target_full_paths#
- property source_full_paths#
- classmethod create_actions(transaction_context, package_info, target_prefix, requested_link_type, file_link_actions)#
- verify()#
- cleanup()#
- execute()#
- reverse()#
- class AggregateCompileMultiPycAction(*individuals, **kw)#
Bases:
CompileMultiPycActionBunch up all of our compile actions, so that they all get carried out at once. This avoids clobbering and is faster when we have several individual packages requiring compilation.
- class CreatePythonEntryPointAction(transaction_context, package_info, target_prefix, target_short_path, module, func)#
Bases:
CreateInPrefixPathAction- classmethod create_actions(transaction_context, package_info, target_prefix, requested_link_type)#
- execute()#
- reverse()#
- class CreatePrefixRecordAction(transaction_context, package_info, target_prefix, target_short_path, requested_link_type, requested_spec, all_link_path_actions)#
Bases:
CreateInPrefixPathAction- classmethod create_actions(transaction_context, package_info, target_prefix, requested_link_type, requested_spec, all_link_path_actions)#
- execute()#
- reverse()#
- class UpdateHistoryAction(transaction_context, target_prefix, target_short_path, remove_specs, update_specs, neutered_specs)#
Bases:
CreateInPrefixPathAction- classmethod create_actions(transaction_context, target_prefix, remove_specs, update_specs, neutered_specs)#
- execute()#
- reverse()#
- cleanup()#
- class RegisterEnvironmentLocationAction(transaction_context, target_prefix)#
Bases:
PathAction- abstract property target_full_path#
- verify()#
- execute()#
- reverse()#
- cleanup()#
- class RemoveFromPrefixPathAction(transaction_context, linked_package_data, target_prefix, target_short_path)#
Bases:
PrefixPathAction- verify()#
- class UnlinkPathAction(transaction_context, linked_package_data, target_prefix, target_short_path, link_type=LinkType.hardlink)#
Bases:
RemoveFromPrefixPathAction- execute()#
- reverse()#
- cleanup()#
- class RemoveMenuAction(transaction_context, linked_package_data, target_prefix, target_short_path)#
Bases:
RemoveFromPrefixPathAction- classmethod create_actions(transaction_context, linked_package_data, target_prefix)#
- execute()#
- reverse()#
- cleanup()#
- class RemoveLinkedPackageRecordAction(transaction_context, linked_package_data, target_prefix, target_short_path)#
Bases:
UnlinkPathAction- execute()#
- reverse()#
- class UnregisterEnvironmentLocationAction(transaction_context, target_prefix)#
Bases:
PathAction- abstract property target_full_path#
- verify()#
- execute()#
- reverse()#
- cleanup()#
- class CacheUrlAction(url, target_pkgs_dir, target_package_basename, sha256=None, size=None, md5=None)#
Bases:
PathAction- property target_full_path#
- verify()#
- execute(progress_update_callback=None)#
- _execute_local(source_path, target_package_cache, progress_update_callback=None)#
- _execute_channel(target_package_cache, progress_update_callback=None)#
- reverse()#
- cleanup()#
- __str__()#
Return str(self).