diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index f7a4c9e23ac4..85d7d6f994b8 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -37,6 +37,11 @@ jobs: env: CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" MACOSX_DEPLOYMENT_TARGET: "10.12" + CIBW_BEFORE_BUILD_WINDOWS: >- + pip install certifi delvewheel oldest-supported-numpy && + git clean -fxd build + CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >- + delvewheel repair -w {dest_dir} {wheel} strategy: matrix: os: [ubuntu-20.04, windows-latest, macos-11] diff --git a/doc/api/next_api_changes/development/24724-ES.rst b/doc/api/next_api_changes/development/24724-ES.rst new file mode 100644 index 000000000000..5a4f992174d6 --- /dev/null +++ b/doc/api/next_api_changes/development/24724-ES.rst @@ -0,0 +1,5 @@ +Windows wheel runtime bundling +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Wheels built for Windows now bundle the MSVC runtime DLL ``msvcp140.dll``. This +enables importing Matplotlib on systems that do not have the runtime installed.