MCPcopy Index your code
hub / github.com/python/cpython / download

Function download

Android/android.py:223–230  ·  view source on GitHub ↗
(url, cache_dir)

Source from the content-addressed store, hash-verified

221
222
223def download(url, cache_dir):
224 out_path = cache_dir / basename(url)
225 cache_dir.mkdir(parents=True, exist_ok=True)
226 if not out_path.is_file():
227 run(["curl", "-Lf", "--retry", "5", "--retry-all-errors", "-o", out_path, url])
228 else:
229 print(f"Using cached version of {basename(url)}")
230 return out_path
231
232
233def configure_host_python(context, host=None):

Callers 2

unpack_depsFunction · 0.70
setup_testbedFunction · 0.70

Calls 4

basenameFunction · 0.90
runFunction · 0.70
mkdirMethod · 0.45
is_fileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…