MCPcopy Create free account
hub / github.com/conda/constructor / _fetch

Function _fetch

constructor/fcp.py:141–149  ·  view source on GitHub ↗
(download_dir, precs)

Source from the content-addressed store, hash-verified

139
140
141def _fetch(download_dir, precs):
142 assert conda_context.pkgs_dirs[0] == download_dir
143 pc = PackageCacheData.first_writable()
144 assert pc.pkgs_dir == download_dir
145 assert pc.is_writable, f"{download_dir} does not exist or is not writable"
146
147 ProgressiveFetchExtract(precs).execute()
148
149 return list(dict.fromkeys(PrefixGraph(pc.iter_records()).graph))
150
151
152def check_duplicates_files(

Callers 1

_fetch_precsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected