Skip to content

Commit

Permalink
GH-44234: [CI][C++][AppVeyor] Use conda instead of Mamba (#44235)
Browse files Browse the repository at this point in the history
### 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 <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou committed Sep 27, 2024
1 parent 3505457 commit 96d61c7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ci/appveyor-cpp-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" ^
Expand Down

0 comments on commit 96d61c7

Please sign in to comment.