wheel
wheel is the reference implementation of the PEP 427 binary distribution format for Python. It ships a command-line tool for inspecting and manipulating .whl files.
Installation and Setup
Install it from the Python Package Index into a virtual environment:
Key Features
- Implements the Wheel standard (PEP 427) used by installers like pip.
- Unpacks wheels while verifying hashes and file sizes against the
RECORDfile withwheel unpack. - Repacks modified wheels and regenerates
RECORDwithwheel pack. - Converts legacy
.eggarchives and Windowsbdist_wininstinstallers into wheels withwheel convert.
Usage
Unpack a wheel into a directory and verify it against RECORD:
Shell
$ wheel unpack dist/pkg-1.2.3-py3-none-any.whl
Repack an unpacked wheel and set a new build number:
Shell
$ wheel pack --build-number 2 pkg-1.2.3
Convert a legacy .egg or Windows installer into a wheel:
Shell
$ wheel convert dist/pkg-1.2.3-py3.11.egg