"""Content-addressed Runtime source and complete installed dependency manifests.""" import argparse import hashlib import json import struct from pathlib import Path def sha(path): return hashlib.sha256(path.read_bytes()).hexdigest() def platform(root): if (root / 'lib/yolo_runtime.dll').exists(): return 'windows-x64' binary = (root / 'lib/libyolo_runtime.so').read_bytes() if binary[:4] != b'\x7fELF': raise ValueError('Installed Runtime is not an ELF library') machine = struct.unpack_from('