This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 96d61c7ed6 GH-44234: [CI][C++][AppVeyor] Use conda instead of Mamba 
(#44235)
96d61c7ed6 is described below

commit 96d61c7ed670479e04a3f8da7a8159029f2d6dee
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Sep 27 10:43:22 2024 +0900

    GH-44234: [CI][C++][AppVeyor] Use conda instead of Mamba (#44235)
    
    ### Rationale for this change
    
    `mamba update` with Mamba 2.0.0 failed.
    
    ### What changes are included in this PR?
    
    Use conda instead of Mamba. "conda-libmamba-solver" isn't used too. 
"classic" solver is used.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #44234
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 ci/appveyor-cpp-setup.bat | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/ci/appveyor-cpp-setup.bat b/ci/appveyor-cpp-setup.bat
index 5a9dffa166..092bf2640c 100644
--- a/ci/appveyor-cpp-setup.bat
+++ b/ci/appveyor-cpp-setup.bat
@@ -44,12 +44,15 @@ conda config --append disallowed_packages pypy3
 conda info -a
 
 @rem
-@rem Install mamba to the base environment
+@rem Install Python to the base environment
 @rem
-conda install -q -y -c conda-forge mamba python=%PYTHON% || exit /B
+conda install -q -y -c conda-forge python=%PYTHON% || exit /B
+
+@rem Can't use conda-libmamba-solver 2.0.0
+conda config --set solver classic
 
 @rem Update for newer CA certificates
-mamba update -q -y -c conda-forge --all || exit /B
+conda update -q -y -c conda-forge --all || exit /B
 
 @rem
 @rem Create conda environment
@@ -66,11 +69,8 @@ set CONDA_PACKAGES=%CONDA_PACKAGES% 
--file=ci\conda_env_cpp.txt
 @rem Force conda to use conda-forge
 conda config --add channels conda-forge
 conda config --remove channels defaults
-@rem Ensure using the latest information. If there are invalid caches,
-@rem mamba may use invalid download URL.
-mamba clean --all -y
 @rem Arrow conda environment
-mamba create -n arrow -y -c conda-forge ^
+conda create -n arrow -y -c conda-forge ^
   --file=ci\conda_env_python.txt ^
   %CONDA_PACKAGES%  ^
   "ccache" ^

Reply via email to