(url, cache_dir)
| 221 | |
| 222 | |
| 223 | def 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 | |
| 233 | def configure_host_python(context, host=None): |
no test coverage detected
searching dependent graphs…