MCPcopy Create free account
hub / github.com/conda/constructor / InstallationFailure

Class InstallationFailure

tests/test_examples.py:386–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384
385@dataclass
386class InstallationFailure(RuntimeError):
387 cmd: list[str]
388 returncode: int
389 msi_log: Path | None = None
390 post_install_log: Path | None = None
391
392 def read_text(self, last_digits: int = -15000) -> str:
393 parts = [
394 f"Command: {self.cmd}",
395 f"Return code: {self.returncode}",
396 ]
397
398 if self.post_install_log:
399 parts.append(
400 f"\n=== MSI LOG POST INSTALL: {self.post_install_log} ===\n"
401 + _read_briefcase_log_tail(self.post_install_log, last_digits)
402 )
403
404 if self.msi_log:
405 parts.append(
406 f"\n=== MSI LOG: {self.msi_log} ===\n"
407 + _read_briefcase_log_tail(self.msi_log, last_digits)
408 )
409
410 return "\n".join(parts)
411
412
413@dataclass

Callers 1

_run_installer_msiFunction · 0.85

Calls

no outgoing calls

Tested by 1

_run_installer_msiFunction · 0.68