| 1 |
wheel pack |
| 2 |
========== |
| 3 |
|
| 4 |
Usage |
| 5 |
----- |
| 6 |
|
| 7 |
:: |
| 8 |
|
| 9 |
wheel pack <wheel_directory> |
| 10 |
|
| 11 |
|
| 12 |
Description |
| 13 |
----------- |
| 14 |
|
| 15 |
Repack a previously unpacked wheel file. |
| 16 |
|
| 17 |
This command can be used to repack a wheel file after its contents have been modified. |
| 18 |
This is the equivalent of ``zip -r <wheel_file> <wheel_directory>`` except that it regenerates the |
| 19 |
``RECORD`` file which contains hashes of all included files. |
| 20 |
|
| 21 |
|
| 22 |
Options |
| 23 |
------- |
| 24 |
|
| 25 |
.. option:: -d, --dest-dir <dir> |
| 26 |
|
| 27 |
Directory to put the new wheel file into. |
| 28 |
|
| 29 |
.. option:: --build-number <tag> |
| 30 |
|
| 31 |
Override the build tag in the new wheel file name. |
| 32 |
|
| 33 |
Examples |
| 34 |
-------- |
| 35 |
|
| 36 |
* Unpack a wheel, add a dummy module and then repack it (with a new build number):: |
| 37 |
|
| 38 |
$ wheel unpack someproject-1.5.0-py2-py3-none.whl |
| 39 |
Unpacking to: ./someproject-1.5.0 |
| 40 |
$ touch someproject-1.5.0/somepackage/module.py |
| 41 |
$ wheel pack --build-number 2 someproject-1.5.0 |
| 42 |
Repacking wheel as ./someproject-1.5.0-2-py2-py3-none.whl...OK |