Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 848 Bytes

README.adoc

File metadata and controls

45 lines (30 loc) · 848 Bytes

pewee: Pack required DLLs into wheels

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.

Install

pip install pewee
pip install pewee[cli] # CLI usage

Usage

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')

Testing

Run python -m pytest.

License

BSD 3-clause.