path_actions#

构成包安装或移除事务的原子操作。

#

属性#

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__()#

返回 repr(self)。

class PathAction#

基类: _Action

abstract property target_full_path#
class MultiPathAction#

基类: _Action

abstract property target_full_paths#
class PrefixPathAction(transaction_context, target_prefix, target_short_path)#

基类: 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)#

基类: 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)#

基类: CreateInPrefixPathAction

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)#

基类: LinkPathAction

verify()#
execute()#
class MakeMenuAction(transaction_context, package_info, target_prefix, target_short_path)#

基类: 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)#

基类: 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)#

基类: CompileMultiPycAction

将我们所有的编译操作集中起来,以便它们可以一次性执行。这避免了冲突,并且在我们有多个单独的包需要编译时速度更快。

class CreatePythonEntryPointAction(transaction_context, package_info, target_prefix, target_short_path, module, func)#

基类: 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)#

基类: 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)#

基类: CreateInPrefixPathAction

classmethod create_actions(transaction_context, target_prefix, remove_specs, update_specs, neutered_specs)#
execute()#
reverse()#
cleanup()#
class RegisterEnvironmentLocationAction(transaction_context, target_prefix)#

基类: PathAction

abstract property target_full_path#
verify()#
execute()#
reverse()#
cleanup()#
class RemoveFromPrefixPathAction(transaction_context, linked_package_data, target_prefix, target_short_path)#

基类: PrefixPathAction

verify()#
class UnlinkPathAction(transaction_context, linked_package_data, target_prefix, target_short_path, link_type=LinkType.hardlink)#

基簎: RemoveFromPrefixPathAction

execute()#
reverse()#
cleanup()#
class RemoveMenuAction(transaction_context, linked_package_data, target_prefix, target_short_path)#

基簎: 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)#

基簎: UnlinkPathAction

execute()#
reverse()#
class UnregisterEnvironmentLocationAction(transaction_context, target_prefix)#

基类: 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)#

基类: 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__()#

返回 str(self)。

class ExtractPackageAction(source_full_path, target_pkgs_dir, target_extracted_dirname, record_or_spec, sha256, size, md5)#

基类: PathAction

property target_full_path#
verify()#
execute(progress_update_callback=None)#
reverse()#
cleanup()#
__str__()#

返回 str(self)。