When building packages with native extensions, native libraries are not included in the wheel. To fix this problem, we need to put them in ourselves.
There’s auditwheel for Linux and delocate for macOS, so here’s one for Windows.
How pewee works: it unpacks a Windows wheel, goes over those, find DLLs they require, copy them into the wheel, and repack it.
CLI usage
pewee patch some-1.2.3-py3-none-any.whl
API usage
from pewee import patch_wheel
patch_wheel('./dist/some-1.2.3-py3-none-any.whl')