Skip to content

Commit

Permalink
Try to use mambaforge
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Dec 11, 2024
1 parent f60ea7d commit 890b101
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
1 change: 0 additions & 1 deletion ci/appveyor-cpp-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ IF "%ARROW_DEBUG_MEMORY_POOL%"=="" (
set CMAKE_BUILD_PARALLEL_LEVEL=%NUMBER_OF_PROCESSORS%
set CTEST_PARALLEL_LEVEL=%NUMBER_OF_PROCESSORS%


call activate arrow

@rem The "main" C++ build script for Windows CI
Expand Down
42 changes: 23 additions & 19 deletions ci/appveyor-cpp-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,24 @@

@echo on

set "PATH=C:\Miniconda38-x64;C:\Miniconda38-x64\Scripts;C:\Miniconda38-x64\Library\bin;%PATH%"
@rem
@rem The miniconda install on AppVeyor is very outdated, use Mambaforge instead
@rem

appveyor DownloadFile https://github.com/conda-forge/miniforge/releases/download/24.9.2-0/Mambaforge-Windows-x86_64.exe || exit /B

start /wait "" Mambaforge-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=C:\Mambaforge

set "PATH=C:\Mambaforge\condabin;%PATH%"

dir C:\Mambaforge

dir C:\Mambaforge\bin

dir C:\Mambaforge\scripts

dir C:\Mambaforge\condabin


@rem
@rem Avoid picking up AppVeyor-installed OpenSSL (linker errors with gRPC)
Expand All @@ -33,26 +50,13 @@ rd /s /q C:\OpenSSL-v30-Win32
rd /s /q C:\OpenSSL-v30-Win64

@rem
@rem Configure miniconda
@rem Configure mamba
@rem
conda config --set auto_update_conda false
conda config --set show_channel_urls True
@rem Help with SSL timeouts to S3
conda config --set remote_connect_timeout_secs 12
@rem Workaround for ARROW-13636
conda config --append disallowed_packages pypy3
@rem Use conda-forge exclusively
conda config --add channels conda-forge
conda config --remove channels defaults
conda info -a

@rem
@rem Install Python to the base environment
@rem
conda install -q -y python=%PYTHON% || exit /B

@rem Update for newer CA certificates
conda update -q -y --all || exit /B
mamba info -a || exit /B

@rem
@rem Create conda environment
Expand All @@ -66,8 +70,8 @@ if "%ARROW_BUILD_GANDIVA%" == "ON" (
)
@rem Install pre-built "toolchain" packages for faster builds
set CONDA_PACKAGES=%CONDA_PACKAGES% --file=ci\conda_env_cpp.txt
@rem Arrow conda environment
conda create -q -n arrow -y ^
@rem Arrow mamba environment
mamba create -q -n arrow -y ^
--file=ci\conda_env_python.txt ^
%CONDA_PACKAGES% ^
"ccache" ^
Expand All @@ -78,7 +82,7 @@ conda create -q -n arrow -y ^
"fsspec" ^
"python=%PYTHON%" ^
|| exit /B
conda list -n arrow
mamba list -n arrow

@rem
@rem Configure compiler
Expand Down

0 comments on commit 890b101

Please sign in to comment.