| 1 |
wheel unpack |
| 2 |
============ |
| 3 |
|
| 4 |
Usage |
| 5 |
----- |
| 6 |
|
| 7 |
:: |
| 8 |
|
| 9 |
wheel unpack <wheel_file> |
| 10 |
|
| 11 |
|
| 12 |
Description |
| 13 |
----------- |
| 14 |
|
| 15 |
Unpack the given wheel file. |
| 16 |
|
| 17 |
This is the equivalent of ``unzip <wheel_file>``, except that it also checks |
| 18 |
that the hashes and file sizes match with those in ``RECORD`` and exits with an |
| 19 |
error if it encounters a mismatch. |
| 20 |
|
| 21 |
|
| 22 |
Options |
| 23 |
------- |
| 24 |
|
| 25 |
.. option:: -d, --dest <dir> |
| 26 |
|
| 27 |
Directory to unpack the wheel into. |
| 28 |
|
| 29 |
|
| 30 |
Examples |
| 31 |
-------- |
| 32 |
|
| 33 |
* Unpack a wheel:: |
| 34 |
|
| 35 |
$ wheel unpack someproject-1.5.0-py2-py3-none.whl |
| 36 |
Unpacking to: ./someproject-1.5.0 |
| 37 |
|
| 38 |
* If a file's hash does not match:: |
| 39 |
|
| 40 |
$ wheel unpack someproject-1.5.0-py2-py3-none.whl |
| 41 |
Unpacking to: ./someproject-1.5.0 |
| 42 |
Traceback (most recent call last): |
| 43 |
... |
| 44 |
wheel.install.BadWheelFile: Bad hash for file 'mypackage/module.py' |
| 45 |
$ echo $? |
| 46 |
1 |