INNER CODE UNIT · Python

micromamba_platform

PKU-EMBL/BASALT · BASALT_setup_China_mainland.py:155

def micromamba_platform() -> str:
    """Map the current Linux architecture to a micromamba artifact name."""
    machine = platform.machine().lower()
    mapping = {
        "x86_64": "linux-64",
        "amd64": "linux-64",
        "aarch64": "linux-aarch64",
        "arm64": "linux-aarch64",
        "ppc64le": "linux-ppc64le",
    }
    if sys.platform != "linux" or machine not in mapping:
        raise InstallationError(
            "Automatic micromamba bootstrap supports Linux x86-64, ARM64, "
            "and ppc64le only. Install micromamba manually and pass "
            "--manager-path."
        )
    return mapping[machine]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…