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)
| 347 | |
| 348 | |
| 349 | def 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 | |
| 362 | def copy_extra_files( |