1717
1818@ echo on
1919
20- set " PATH = C:\Miniconda38-x64;C:\Miniconda38-x64\Scripts;C:\Miniconda38-x64\Library\bin;%PATH% "
20+ @ rem
21+ @ rem The miniconda install on AppVeyor is very outdated, use Mambaforge instead
22+ @ rem
23+
24+ appveyor DownloadFile https://github.com/conda-forge/miniforge/releases/download/24.9.2-0/Mambaforge-Windows-x86_64.exe || exit /B
25+ start /wait " " Mambaforge-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=C:\Mambaforge
26+ set " PATH = C:\Mambaforge\scripts;C:\Mambaforge\condabin;%PATH% "
2127
2228@ rem
2329@ rem Avoid picking up AppVeyor-installed OpenSSL (linker errors with gRPC)
@@ -33,26 +39,15 @@ rd /s /q C:\OpenSSL-v30-Win32
3339rd /s /q C:\OpenSSL-v30-Win64
3440
3541@ rem
36- @ rem Configure miniconda
42+ @ rem Configure conda
3743@ rem
3844conda config --set auto_update_conda false
39- conda config --set show_channel_urls True
45+ conda config --set show_channel_urls true
46+ conda config --set always_yes true
4047@ rem Help with SSL timeouts to S3
4148conda config --set remote_connect_timeout_secs 12
42- @ rem Workaround for ARROW-13636
43- conda config --append disallowed_packages pypy3
44- conda info -a
45-
46- @ rem
47- @ rem Install Python to the base environment
48- @ rem
49- conda install -q -y -c conda-forge python=%PYTHON% || exit /B
5049
51- @ rem Can't use conda-libmamba-solver 2.0.0
52- conda config --set solver classic
53-
54- @ rem Update for newer CA certificates
55- conda update -q -y -c conda-forge --all || exit /B
50+ conda info -a || exit /B
5651
5752@ rem
5853@ rem Create conda environment
@@ -66,11 +61,8 @@ if "%ARROW_BUILD_GANDIVA%" == "ON" (
6661)
6762@ rem Install pre-built "toolchain" packages for faster builds
6863set CONDA_PACKAGES = %CONDA_PACKAGES% --file=ci\conda_env_cpp.txt
69- @ rem Force conda to use conda-forge
70- conda config --add channels conda-forge
71- conda config --remove channels defaults
7264@ rem Arrow conda environment
73- conda create -n arrow -y -c conda-forge ^
65+ conda create -n arrow ^
7466 --file=ci\conda_env_python.txt ^
7567 %CONDA_PACKAGES% ^
7668 " ccache" ^
@@ -97,7 +89,6 @@ if "%ARROW_S3%" == "ON" (
9789 appveyor DownloadFile https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2024-09-13T20-26-02Z -FileName C:\Windows\Minio.exe || exit /B
9890)
9991
100-
10192@ rem
10293@ rem Download IANA Timezone Database for unit tests
10394@ rem
0 commit comments