Skip to content

Commit d8f2427

Browse files
committed
Try Windows using conda
1 parent 91acf11 commit d8f2427

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/python.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,15 @@ jobs:
288288
env:
289289
# We can invalidate the current cache by updating this.
290290
CACHE_VERSION: "2025-09-16.1"
291+
- name: Set up micromamba
292+
uses: mamba-org/setup-micromamba@v2
293+
with:
294+
environment-file: ci/conda_env_python.txt
295+
init-shell: cmd
291296
- name: Build Arrow C++ and PyArrow
292297
shell: cmd
293298
run: |
294-
call "ci\scripts\python_build.bat" %cd% "${{ steps.path-info.outputs.usr-windows-dir }}"
299+
call "ci\scripts\python_build.bat" %cd% %CONDA_PREFIX%
295300
- name: Test PyArrow
296301
shell: cmd
297302
run: |

ci/scripts/python_build.bat

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,9 @@ pushd %SOURCE_DIR%\python
198198
@REM Install Python build dependencies
199199
%PYTHON_CMD% -m pip install --upgrade pip || exit /B 1
200200
%PYTHON_CMD% -m pip install -r requirements-build.txt || exit /B 1
201-
%PYTHON_CMD% -m pip install build delvewheel || exit /B 1
202-
203-
@REM by default, CMake installs .lib import libs to lib and .dll libs to bin
204-
@REM delvewheel requires these to be side-by-side to properly vendor
205-
@REM https://github.com/adang1345/delvewheel/issues/66
206-
copy %CMAKE_INSTALL_PREFIX%\lib\*.lib %CMAKE_INSTALL_PREFIX%\bin\
207201

208202
@REM Build PyArrow
209-
%PYTHON_CMD% -m build --wheel . --no-isolation ^
203+
%PYTHON_CMD% -m pip install --no-deps --no-build-isolation -vv . ^
210204
-Csetup-args="-Dbuildtype=%MESON_BUILD_TYPE%" ^
211205
-Csetup-args="-Dacero=%PYARROW_WITH_ACERO%" ^
212206
-Csetup-args="-Ddataset=%PYARROW_WITH_DATASET%" ^
@@ -219,7 +213,5 @@ copy %CMAKE_INSTALL_PREFIX%\lib\*.lib %CMAKE_INSTALL_PREFIX%\bin\
219213
-Csetup-args="-Dparquet_require_encryption=%PYARROW_WITH_PARQUET_ENCRYPTION%" ^
220214
-Csetup-args="-Dsubstrait=%PYARROW_WITH_SUBSTRAIT%" ^
221215
-Csetup-args="-Ds3=%PYARROW_WITH_S3%" || exit /B 1
222-
%PYTHON_CMD% -m delvewheel repair --ignore-existing --no-mangle-all --include-imports dist\* || exit /B 1
223-
%PYTHON_CMD% -m pip install --no-index --find-links .\wheelhouse\ pyarrow || exit /B 1
224216

225217
popd

0 commit comments

Comments
 (0)