misc
#
Miscellaneous utility functions.
Functions#
|
Return the set of files which have been installed (using conda) into |
|
|
|
Install a list of PackageRecords into a prefix |
Given a list of specs, find the corresponding PackageCacheRecord. If |
|
Given the lines from an explicit.txt, create the PackageRecords for each of the |
|
|
|
|
Return the set of all files in a given prefix directory. |
|
Return (the set) of all untracked files for a given prefix. |
|
Creates $PREFIX/.nonadmin if sys.prefix/.nonadmin exists (on Windows). |
|
Clone existing prefix1 into new prefix2. |
|
Attributes#
- conda_installed_files(prefix, exclude_self_build=False)#
Return the set of files which have been installed (using conda) into a given prefix.
- url_pat#
- _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.
- rel_path(prefix, path, windows_forward_slashes=True)#
- 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.
- touch_nonadmin(prefix)#
Creates $PREFIX/.nonadmin if sys.prefix/.nonadmin exists (on Windows).
- clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None)#
Clone existing prefix1 into new prefix2.
- _get_best_prec_match(precs)#