def METHOD_NAME(file_path, file_arcname):
    """Calculate an entry for the RECORD file (required by the wheel spec)."""
    with open(file_path, "rb") as f:
        file_digest = hashlib.sha256(f.read()).digest()
    file_hash = "sha256=" + base64.urlsafe_b64encode(file_digest).decode().rstrip("=")
    file_size = str(os.stat(file_path).st_size)
    _record.append(",".join([file_arcname, file_hash, file_size]))