Skip to content

Commit 593a194

Browse files
committed
Try conda instead of micromamba
1 parent 76ab2fb commit 593a194

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/python.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,22 +288,32 @@ jobs:
288288
env:
289289
# We can invalidate the current cache by updating this.
290290
CACHE_VERSION: "2025-09-16.1"
291-
- name: Install and setup micromamba
291+
- name: Install conda
292292
shell: cmd
293293
run: |
294-
curl -L -o micromamba.exe https://github.com/mamba-org/micromamba-releases/releases/download/2.4.0-0/micromamba-win-64.exe
295-
micromamba.exe shell init -s cmd.exe -r C:\micromamba
296-
micromamba.exe create -n pyarrow-dev -f ".\ci\conda_env_python.txt" -y
297-
dir "C:\micromamba"
294+
curl -L https://github.com/conda-forge/miniforge/releases/download/25.11.0-0/Miniforge3-25.11.0-0-Windows-x86_64.exe -o miniforge.exe
295+
start /wait "" .\miniforge.exe /S /D=C:\miniforge
296+
del .\miniforge.exe
297+
C:\miniforge\Scripts\conda.exe init cmd.exe
298+
echo C:\miniforge\Scripts >> %GITHUB_PATH%
299+
echo C:\miniforge\Library\bin >> %GITHUB_PATH%
300+
echo C:\miniforge\condabin >> %GITHUB_PATH%
301+
- name: Create conda environment
302+
shell: cmd
303+
run: |
304+
call "C:\miniforge\condabin\conda.bat"
305+
set "PATH=C:\miniforge;C:\miniforge\Scripts;%PATH%"
306+
conda init cmd.exe
307+
conda env create -n pyarrow-dev -f .\ci\conda_env_python.txt -y
298308
- name: Build Arrow C++ and PyArrow
299309
shell: cmd
300310
run: |
301-
call "C:\micromamba\condabin\micromamba.bat"
302-
micromamba activate pyarrow-dev || exit /B 1
303-
call "ci\scripts\python_build.bat" %cd% "C:\micromamba"
311+
dir "C:\miniforge"
312+
dir "C:\miniforge\Scripts"
313+
call "C:\miniforge\Scripts\activate.bat pyarrow-dev" || exit /B 1
314+
call "ci\scripts\python_build.bat" %cd% "%CONDA_PREFIX%"
304315
- name: Test PyArrow
305316
shell: cmd
306317
run: |
307-
call "C:\micromamba\condabin\micromamba.bat"
308-
micromamba activate pyarrow-dev || exit /B 1
318+
call "C:\miniforge\Scripts\activate.bat pyarrow-dev"
309319
call "ci\scripts\python_test.bat" %cd%

0 commit comments

Comments
 (0)