Skip to content

Commit

Permalink
Add System32 dir for msvcp140.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Dec 19, 2024
1 parent 0f00ba2 commit ced6cf8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/scripts/python_wheel_windows_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary

@REM Install a more recent msvcp140.dll in C:\Windows\System
choco install -r -y --no-progress vcredist140
choco upgrade -r -y --no-progress vcredist140

dir C:\Windows\System32\msvcp140.dll

echo "=== (%PYTHON_VERSION%) Clear output directories and leftovers ==="
del /s /q C:\arrow-build
Expand Down Expand Up @@ -136,7 +139,7 @@ echo "Wheel name: %WHEEL_NAME%"
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%"

delvewheel show -vv --add-path "%WHEEL_BUILD_DIR%\pyarrow" %WHEEL_NAME% || exit /B 1
delvewheel repair -vv --add-path "%WHEEL_BUILD_DIR%\pyarrow" %WHEEL_NAME% -w repaired_wheels || exit /B 1
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

popd

0 comments on commit ced6cf8

Please sign in to comment.