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

Function write_condarc

constructor/preconda.py:349–359  ·  view source on GitHub ↗

Write .condarc file to the workspace if configured. The file will be included in the payload tarball and extracted to the correct location during installation.

(info: dict, dst_dir: str)

Source from the content-addressed store, hash-verified

347
348
349def write_condarc(info: dict, dst_dir: str):
350 """Write .condarc file to the workspace if configured.
351
352 The file will be included in the payload tarball and extracted
353 to the correct location during installation.
354 """
355 condarc = get_condarc_content(info)
356 if not condarc:
357 return
358 with open(join(dst_dir, ".condarc"), "w") as f:
359 f.write(condarc)
360
361
362def copy_extra_files(

Calls 1

get_condarc_contentFunction · 0.85