Skip to content

nc7s/pewee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Pack required DLLs into wheels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages