Skip to content

Commit

Permalink
ci: use delvewheel for Windows wheels (#193)
Browse files Browse the repository at this point in the history
Fixes #99.
  • Loading branch information
lidavidm committed Nov 22, 2022
1 parent 0cd9e76 commit da8d574
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ci/scripts/python_wheel_windows_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,17 @@ set ADBC_POSTGRES_LIBRARY=%build_dir%\bin\adbc_driver_postgres.dll

popd

python -m pip install --upgrade pip
python -m pip install --upgrade pip delvewheel

FOR %%c IN (adbc_driver_manager adbc_driver_postgres) DO (
pushd %source_dir%\python\%%c

echo "=== (%PYTHON_VERSION%) Building %%c wheel ==="
@REM bundle the MSVC runtime
cp "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Redist\MSVC\14.16.27012\x64\Microsoft.VC141.CRT\msvcp140.dll" %%c\msvcp140.dll
python -m pip wheel -w dist -vvv . || exit /B 1

FOR %%w IN (dist\*.whl) DO (
delvewheel repair -w dist\ %%w
)

popd
)

0 comments on commit da8d574

Please sign in to comment.