misc#

杂项实用工具函数。

函数#

conda_installed_files(prefix[, exclude_self_build])

返回已安装(使用 conda)到给定前缀中的文件集。

_match_specs_from_explicit(...)

explicit(specs, prefix[, verbose, force_extract, index])

rel_path(prefix, path[, windows_forward_slashes])

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

返回给定前缀目录中所有文件的集合。

untracked(prefix[, exclude_self_build])

返回给定前缀的所有未跟踪文件(的集合)。

touch_nonadmin(prefix)

如果 sys.prefix/.nonadmin 存在(在 Windows 上),则创建 $PREFIX/.nonadmin。

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

将现有 prefix1 克隆到新的 prefix2 中。

_get_best_prec_match(precs)

属性#

conda_installed_files(prefix, exclude_self_build=False)#

返回已安装(使用 conda)到给定前缀中的文件集。

url_pat#
_match_specs_from_explicit(specs: collections.abc.Iterable[str]) collections.abc.Iterable[conda.models.match_spec.MatchSpec]#
explicit(specs, prefix, verbose=False, force_extract=True, index=None)#
rel_path(prefix, path, windows_forward_slashes=True)#
walk_prefix(prefix, ignore_predefined_files=True, windows_forward_slashes=True)#

返回给定前缀目录中所有文件的集合。

untracked(prefix, exclude_self_build=False)#

返回给定前缀的所有未跟踪文件(的集合)。

touch_nonadmin(prefix)#

如果 sys.prefix/.nonadmin 存在(在 Windows 上),则创建 $PREFIX/.nonadmin。

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

将现有 prefix1 克隆到新的 prefix2 中。

_get_best_prec_match(precs)#