launchers#

Locate and verify Windows entry point launchers.

Functions#

get_windows_launcher_stub() → tuple[str, str])

Return the target Python's launcher path and expected SHA-256.

_find_launcher(→ tuple[str, str] | None)

verify_windows_launcher(→ None)

Verify the expected SHA-256 immediately before copying a launcher.

get_windows_launcher_stub(target_prefix: str | os.PathLike[str], *, source_prefixes: collections.abc.Iterable[str | os.PathLike[str]], source_package_infos: collections.abc.Iterable[conda.models.package_info.PackageInfo] = ()) → tuple[str, str]#

Return the target Python's launcher path and expected SHA-256.

_find_launcher(prefix: str | os.PathLike[str], paths_data: conda.models.records.PathsData | None, short_path: str) → tuple[str, str] | None#
verify_windows_launcher(path: str, sha256: str) → None#

Verify the expected SHA-256 immediately before copying a launcher.