index#

Tools for fetching the current index.

Functions#

check_allowlist(channel_urls)

get_index([channel_urls, prepend, platform, ...])

Return the index of packages available on the channels

fetch_index(channel_urls[, use_cache, index, repodata_fn])

dist_str_in_index(index, dist_str)

_supplement_index_with_prefix(index, prefix)

_supplement_index_with_cache(index)

_make_virtual_package(name[, version, build_string])

_supplement_index_with_features(index[, features])

_supplement_index_with_system(index)

Loads and populates virtual package records from conda plugins

get_archspec_name()

calculate_channel_urls([channel_urls, prepend, ...])

get_reduced_index(prefix, channels, subdirs, specs, ...)

Attributes#

LAST_CHANNEL_URLS

check_allowlist(channel_urls)#
LAST_CHANNEL_URLS = []#
get_index(channel_urls=(), prepend=True, platform=None, use_local=False, use_cache=False, unknown=None, prefix=None, repodata_fn=context.repodata_fns[-1])#

Return the index of packages available on the channels

If prepend=False, only the channels passed in as arguments are used. If platform=None, then the current platform is used. If prefix is supplied, then the packages installed in that prefix are added.

fetch_index(channel_urls, use_cache=False, index=None, repodata_fn=context.repodata_fns[-1])#
dist_str_in_index(index, dist_str)#
_supplement_index_with_prefix(index, prefix)#
_supplement_index_with_cache(index)#
_make_virtual_package(name, version=None, build_string=None)#
_supplement_index_with_features(index, features=())#
_supplement_index_with_system(index)#

Loads and populates virtual package records from conda plugins and adds them to the provided index, unless there is a naming conflict.

get_archspec_name()#
calculate_channel_urls(channel_urls=(), prepend=True, platform=None, use_local=False)#
get_reduced_index(prefix, channels, subdirs, specs, repodata_fn)#