misc#

Miscellaneous utility functions.

Functions#

conda_installed_files(prefix[, exclude_self_build])

Return the set of files which have been installed (using conda) into

_get_url_pattern(→ re.Pattern)

Build URL pattern dynamically based on registered package extensions.

_match_specs_from_explicit(...)

explicit(→ None)

install_explicit_packages(package_cache_records, prefix)

Install a list of PackageRecords into a prefix

_get_package_record_from_specs(...)

Given a list of specs, find the corresponding PackageCacheRecord. If

get_package_records_from_explicit(...)

Given the lines from an explicit.txt, create the PackageRecords for each of the

walk_prefix(prefix[, ignore_predefined_files, ...])

Return the set of all files in a given prefix directory.

untracked(prefix[, exclude_self_build])

Return (the set) of all untracked files for a given prefix.

clone_env(prefix1, prefix2[, verbose, quiet, index_args])

Clone existing prefix1 into new prefix2.

_get_best_prec_match(precs)

conda_installed_files(prefix, exclude_self_build=False)#

Return the set of files which have been installed (using conda) into a given prefix.

_get_url_pattern() re.Pattern#

Build URL pattern dynamically based on registered package extensions.

_match_specs_from_explicit(specs: collections.abc.Iterable[str]) collections.abc.Iterable[conda.models.match_spec.MatchSpec]#
explicit(specs: collections.abc.Iterable[str], prefix: str, verbose: bool = False, force_extract: bool = True, index: Any = None, requested_specs: collections.abc.Sequence[str] | None = None) None#
install_explicit_packages(package_cache_records: list[conda.models.records.PackageRecord], prefix: str, requested_specs: collections.abc.Sequence[str] | None = None)#

Install a list of PackageRecords into a prefix

_get_package_record_from_specs(specs: list[str]) collections.abc.Iterable[conda.models.records.PackageCacheRecord]#

Given a list of specs, find the corresponding PackageCacheRecord. If some PackageCacheRecords are missing, raise an error.

get_package_records_from_explicit(lines: list[str]) collections.abc.Iterable[conda.models.records.PackageCacheRecord]#

Given the lines from an explicit.txt, create the PackageRecords for each of the specified packages. This may require downloading the package, if it does not already exist in the package cache.

walk_prefix(prefix, ignore_predefined_files=True, windows_forward_slashes=True)#

Return the set of all files in a given prefix directory.

untracked(prefix, exclude_self_build=False)#

Return (the set) of all untracked files for a given prefix.

clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None)#

Clone existing prefix1 into new prefix2.

_get_best_prec_match(precs)#