From ffba536bb1208565b80356c80eb6c43e55809272 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Thu, 19 Dec 2024 12:30:16 +0100 Subject: [PATCH] Approach 2 --- ci/scripts/python_wheel_windows_build.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/scripts/python_wheel_windows_build.bat b/ci/scripts/python_wheel_windows_build.bat index f288cd94584af..24a84ff01949c 100644 --- a/ci/scripts/python_wheel_windows_build.bat +++ b/ci/scripts/python_wheel_windows_build.bat @@ -129,8 +129,11 @@ python setup.py bdist_wheel || exit /B 1 pip install delvewheel || exit /B 1 for /f %%i in ('dir dist\pyarrow-*.whl /B') do set WHEEL_NAME=dist\%%i || exit /B 1 echo "Wheel name: %WHEEL_NAME%" +for /f %%i in ('dir build\bdist* /B') do set WHEEL_BUILD_DIR=%cd%\build\%%i\wheel || exit /B 1 +echo "Wheel build dir: %WHEEL_BUILD_DIR%" -delvewheel show -v --ignore-existing --include msvcp140.dll %WHEEL_NAME% || exit /B 1 -delvewheel repair -v --ignore-existing --include msvcp140.dll %WHEEL_NAME% -w repaired_wheels || exit /B 1 +@REM --add-path is needed for delvewheel to find arrow_python.dll and friends +delvewheel show -v --analyze-existing --add-path %WHEEL_BUILD_DIR%\pyarrow %WHEEL_NAME% || exit /B 1 +delvewheel repair -v --analyze-existing -add-path %WHEEL_BUILD_DIR%\pyarrow %WHEEL_NAME% -w repaired_wheels || exit /B 1 popd