diff --git a/ci/scripts/python_wheel_windows_build.bat b/ci/scripts/python_wheel_windows_build.bat index 8b357b50a414d..98c6951dd08f7 100644 --- a/ci/scripts/python_wheel_windows_build.bat +++ b/ci/scripts/python_wheel_windows_build.bat @@ -134,11 +134,13 @@ python setup.py bdist_wheel || exit /B 1 @REM Repair the wheel with delvewheel pip install delvewheel || exit /B 1 -for /f %%i in ('dir dist\pyarrow-*.whl /B') do set WHEEL_NAME="%cd%\dist\%%i" || exit /B 1 +for /f %%i in ('dir dist\pyarrow-*.whl /B') do (set WHEEL_NAME=%cd%\dist\%%i) || exit /B 1 echo "Wheel name: %WHEEL_NAME%" -for /f %%i in ('dir build\lib* /B') do set WHEEL_BUILD_DIR="%cd%\build\%%i" || exit /B 1 +for /f %%i in ('dir build\lib* /B') do (set WHEEL_BUILD_DIR=%cd%\build\%%i) || exit /B 1 echo "Wheel build dir: %WHEEL_BUILD_DIR%" +dir "%WHEEL_BUILD_DIR%\pyarrow" + delvewheel show -vv --add-path "%WHEEL_BUILD_DIR%\pyarrow";C:\Windows\System32 %WHEEL_NAME% || exit /B 1 delvewheel repair -vv --add-path "%WHEEL_BUILD_DIR%\pyarrow";C:\Windows\System32 %WHEEL_NAME% -w repaired_wheels || exit /B 1