MCPcopy
hub / github.com/astral-sh/python-build-standalone / materialize_clang

Function materialize_clang

cpython-unix/build.py:314–327  ·  view source on GitHub ↗
(host_platform: str, target_triple: str)

Source from the content-addressed store, hash-verified

312
313
314def materialize_clang(host_platform: str, target_triple: str):
315 entry = clang_toolchain(host_platform, target_triple)
316 tar_zst = download_entry(entry, DOWNLOADS_PATH)
317 local_filename = "%s-%s-%s.tar" % (
318 entry,
319 DOWNLOADS[entry]["version"],
320 host_platform,
321 )
322
323 dctx = zstandard.ZstdDecompressor()
324
325 with open(tar_zst, "rb") as ifh:
326 with open(BUILD / local_filename, "wb") as ofh:
327 dctx.copy_stream(ifh, ofh)
328
329
330def build_musl(client, image, host_platform: str, target_triple: str, build_options):

Callers 1

mainFunction · 0.85

Calls 2

clang_toolchainFunction · 0.90
download_entryFunction · 0.90

Tested by

no test coverage detected