1717
1818
1919# -- code --
20- def setup_mambaforge (prefix ):
20+ def setup_miniforge (prefix ):
2121 u = platform .uname ()
22- if u .system == "Linux" :
23- url = "https://github.com/conda-forge/miniforge/releases/download/23.1.0-1/Mambaforge-23.1.0-1-Linux-x86_64.sh"
22+ if (u .system , u .machine ) == ("Linux" , "x86_64" ):
23+ url = "https://github.com/conda-forge/miniforge/releases/download/25.3.0-1/Miniforge3-25.3.0-1-Linux-x86_64.sh"
24+ download_dep (url , prefix , args = ["-bfp" , str (prefix )])
25+ elif (u .system , u .machine ) in (("Linux" , "arm64" ), ("Linux" , "aarch64" )):
26+ url = "https://github.com/conda-forge/miniforge/releases/download/25.3.0-1/Miniforge3-25.3.0-1-Linux-aarch64.sh"
2427 download_dep (url , prefix , args = ["-bfp" , str (prefix )])
2528 elif (u .system , u .machine ) == ("Darwin" , "arm64" ):
26- url = "https://github.com/conda-forge/miniforge/releases/download/23.1 .0-1/Mambaforge-23.1 .0-1-MacOSX-arm64.sh"
29+ url = "https://github.com/conda-forge/miniforge/releases/download/25.3 .0-1/Miniforge3-25.3 .0-1-MacOSX-arm64.sh"
2730 download_dep (url , prefix , args = ["-bfp" , str (prefix )])
2831 elif (u .system , u .machine ) == ("Darwin" , "x86_64" ):
29- url = "https://github.com/conda-forge/miniforge/releases/download/23.1 .0-1/Mambaforge-23.1 .0-1-MacOSX-x86_64.sh"
32+ url = "https://github.com/conda-forge/miniforge/releases/download/25.3 .0-1/Miniforge3-25.3 .0-1-MacOSX-x86_64.sh"
3033 download_dep (url , prefix , args = ["-bfp" , str (prefix )])
3134 elif u .system == "Windows" :
3235 url = (
33- "https://github.com/conda-forge/miniforge/releases/download/23.1 .0-1/Mambaforge-23.1 .0-1-Windows-x86_64.exe"
36+ "https://github.com/conda-forge/miniforge/releases/download/25.3 .0-1/Miniforge3-25.3 .0-1-Windows-x86_64.exe"
3437 )
3538 download_dep (
3639 url ,
@@ -82,8 +85,8 @@ def setup_python(version: str) -> Tuple[Command, Command]:
8285
8386 windows = platform .system () == "Windows"
8487
85- prefix = get_cache_home () / "mambaforge "
86- setup_mambaforge (prefix )
88+ prefix = get_cache_home () / "miniforge "
89+ setup_miniforge (prefix )
8790
8891 if windows :
8992 conda_path = prefix / "Scripts" / "conda.exe"
@@ -92,9 +95,9 @@ def setup_python(version: str) -> Tuple[Command, Command]:
9295
9396 if not conda_path .exists ():
9497 shutil .rmtree (prefix , ignore_errors = True )
95- setup_mambaforge (prefix )
98+ setup_miniforge (prefix )
9699 if not conda_path .exists ():
97- raise RuntimeError (f"Failed to setup mambaforge at { prefix } " )
100+ raise RuntimeError (f"Failed to setup miniforge at { prefix } " )
98101
99102 conda = sh .bake (str (conda_path ))
100103
0 commit comments