INNER CODE UNIT · Python

main

PKU-EMBL/BASALT · BASALT_setup_China_mainland.py:630

def main(argv: Optional[Sequence[str]] = None) -> int:
    """Install the environment, BASALT scripts, and optional model weights."""
    parser = build_parser()
    args = parser.parse_args(argv)
    try:
        validate_arguments(args)
        source = resolve_source(args)
        manager, executable = resolve_manager(args)
        print("Environment manager: {} ({})".format(manager, executable))
        if not args.dry_run:
            run_command([executable, "--version"])

        _, channels, pip_index = resolve_mirror(args)
        print("Conda channels (highest priority first):")
        for channel in channels:
            print("  - {}".format(channel))
        print("PyPI index: {}".format(pip_index or "inherited/default"))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…