Skip to content

Commit 918f7cf

Browse files
committed
Try conda instead of micromamba
1 parent 76ab2fb commit 918f7cf

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

.github/workflows/python.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,22 +288,34 @@ 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+
- name: Create conda environment
299+
shell: cmd
300+
env:
301+
PATH:
302+
run: |
303+
set PATH="C:\\miniforge\\Scripts;C:\\miniforge\\Library\\bin;C:\\miniforge\\condabin;%PATH%"
304+
conda init cmd.exe
305+
conda env create -n pyarrow-dev -f .\ci\conda_env_python.txt -y
298306
- name: Build Arrow C++ and PyArrow
299307
shell: cmd
308+
env:
309+
PYTHON_CMD: "python"
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+
set PATH="C:\\miniforge\\Scripts;C:\\miniforge\\Library\\bin;C:\\miniforge\\condabin;%PATH%"
312+
call activate pyarrow-dev || exit /B 1
313+
call "ci\scripts\python_build.bat" %cd% "%CONDA_PREFIX%"
304314
- name: Test PyArrow
305315
shell: cmd
316+
env:
317+
PYTHON_CMD: "python"
306318
run: |
307-
call "C:\micromamba\condabin\micromamba.bat"
308-
micromamba activate pyarrow-dev || exit /B 1
319+
set PATH="C:\\miniforge\\Scripts;C:\\miniforge\\Library\\bin;C:\\miniforge\\condabin;%PATH%"
320+
call activate pyarrow-dev
309321
call "ci\scripts\python_test.bat" %cd%

ci/scripts/python_build.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ echo C++ source dir is %CPP_SOURCE_DIR%
2525

2626
echo Building for Windows ...
2727

28+
echo %PATH%
29+
2830
@REM List installed Pythons
29-
py -0p
31+
@REM py -0p
3032

3133
%PYTHON_CMD% -m sysconfig || exit /B 1
3234

3335
@REM Setup MSVC environment
3436

3537
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
38+
echo %PATH%
3639
@echo on
3740

3841
echo "=== CCACHE Stats before build ==="

ci/scripts/python_test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set PARQUET_TEST_DATA=%SOURCE_DIR%\cpp\submodules\parquet-testing\data
2525
echo Testing on Windows ...
2626

2727
@REM List installed Pythons
28-
py -0p
28+
@REM py -0p
2929

3030
%PYTHON_CMD% -m sysconfig || exit /B 1
3131

0 commit comments

Comments
 (0)