INNER CODE UNIT · Python

write_temporary_condarc

PKU-EMBL/BASALT · BASALT_setup_China_mainland.py:341

def write_temporary_condarc(destination: Path, channels: Sequence[str]) -> None:
    """Create an isolated strict-priority Conda configuration."""
    lines = ["channels:"]
    lines.extend("  - {}".format(channel.rstrip("/")) for channel in channels)
    lines.extend(
        [
            "channel_priority: strict",
            "show_channel_urls: true",
            "remote_connect_timeout_secs: 20",
            "remote_read_timeout_secs: 120",
            "remote_max_retries: 5",
        ]
    )
    destination.write_text("\n".join(lines) + "\n", encoding="utf-8")


def installation_environment(
    manager: str,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…