:py:mod:`misc` ============== .. py:module:: conda.misc .. autoapi-nested-parse:: Miscellaneous utility functions. Functions --------- .. autoapisummary:: conda.misc.conda_installed_files conda.misc._match_specs_from_explicit conda.misc.explicit conda.misc.install_explicit_packages conda.misc._get_package_record_from_specs conda.misc.get_package_records_from_explicit conda.misc.rel_path conda.misc.walk_prefix conda.misc.untracked conda.misc.touch_nonadmin conda.misc.clone_env conda.misc._get_best_prec_match Attributes ---------- .. autoapisummary:: conda.misc.url_pat .. py:function:: conda_installed_files(prefix, exclude_self_build=False) Return the set of files which have been installed (using conda) into a given prefix. .. py:data:: url_pat .. py:function:: _match_specs_from_explicit(specs: collections.abc.Iterable[str]) -> collections.abc.Iterable[conda.models.match_spec.MatchSpec] .. py:function:: 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 .. py:function:: 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 .. py:function:: _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. .. py:function:: 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. .. py:function:: rel_path(prefix, path, windows_forward_slashes=True) .. py:function:: walk_prefix(prefix, ignore_predefined_files=True, windows_forward_slashes=True) Return the set of all files in a given prefix directory. .. py:function:: untracked(prefix, exclude_self_build=False) Return (the set) of all untracked files for a given prefix. .. py:function:: touch_nonadmin(prefix) Creates $PREFIX/.nonadmin if sys.prefix/.nonadmin exists (on Windows). .. py:function:: clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None) Clone existing prefix1 into new prefix2. .. py:function:: _get_best_prec_match(precs)