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

Function _sentinel_file_checks

tests/test_examples.py:333–342  ·  view source on GitHub ↗
(example_path, install_dir)

Source from the content-addressed store, hash-verified

331
332
333def _sentinel_file_checks(example_path, install_dir):
334 script_ext = "bat" if sys.platform.startswith("win") else "sh"
335 for script_prefix in "pre", "post", "test":
336 script = f"{script_prefix}_install.{script_ext}"
337 sentinel = f"{script_prefix}_install_sentinel.txt"
338 if (example_path / script).exists() and not (install_dir / sentinel).exists():
339 raise AssertionError(
340 f"Sentinel file for {script_prefix}_install not found! "
341 f"{install_dir} contents:\n" + "\n".join(sorted(map(str, install_dir.iterdir())))
342 )
343
344
345def calculate_msi_install_path(config_path: Path) -> Path:

Callers 2

_run_installerFunction · 0.85
test_example_miniforgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected