| 1 |
wheel tags |
| 2 |
========== |
| 3 |
|
| 4 |
Usage |
| 5 |
----- |
| 6 |
|
| 7 |
:: |
| 8 |
|
| 9 |
wheel tags [-h] [--remove] [--python-tag TAG] [--abi-tag TAG] [--platform-tag TAG] [--build NUMBER] WHEEL [...] |
| 10 |
|
| 11 |
Description |
| 12 |
----------- |
| 13 |
|
| 14 |
Make a new wheel with given tags from an existing wheel. Any tags left |
| 15 |
unspecified will remain the same. Multiple tags are separated by a ".". Starting |
| 16 |
with a "+" will append to the existing tags. Starting with a "-" will remove a |
| 17 |
tag. Be sure to use the equals syntax on the shell so that it does not get |
| 18 |
parsed as an extra option, such as ``--python-tag=-py2``. The original file |
| 19 |
will remain unless ``--remove`` is given. The output filename(s) will be |
| 20 |
displayed on stdout for further processing. |
| 21 |
|
| 22 |
|
| 23 |
Options |
| 24 |
------- |
| 25 |
|
| 26 |
.. option:: --remove |
| 27 |
|
| 28 |
Remove the original wheel, keeping only the retagged wheel. |
| 29 |
|
| 30 |
.. option:: --python-tag=TAG |
| 31 |
|
| 32 |
Override the Python tag (prepend with "+" to append, "-" to remove). |
| 33 |
Multiple tags can be separated with a dot. |
| 34 |
|
| 35 |
.. option:: --abi-tag=TAG |
| 36 |
|
| 37 |
Override the ABI tag (prepend with "+" to append, "-" to remove). |
| 38 |
Multiple tags can be separated with a dot. |
| 39 |
|
| 40 |
.. option:: --platform-tag=TAG |
| 41 |
|
| 42 |
Override the platform tag (prepend with "+" to append, "-" to remove). |
| 43 |
Multiple tags can be separated with a dot. |
| 44 |
|
| 45 |
.. option:: --build=NUMBER |
| 46 |
|
| 47 |
Specify a build number. |
| 48 |
|
| 49 |
Examples |
| 50 |
-------- |
| 51 |
|
| 52 |
* Replace a wheel's Python specific tags with generic tags (if no Python extensions are present, for example):: |
| 53 |
|
| 54 |
$ wheel tags --python-tag=py2.py3 --abi-tag=none cmake-3.20.2-cp39-cp39-win_amd64.whl |
| 55 |
cmake-3.20.2-py2.py3-none-win_amd64.whl |
| 56 |
|
| 57 |
* Add compatibility tags for macOS universal wheels and older pips:: |
| 58 |
|
| 59 |
$ wheel tags \ |
| 60 |
--platform-tag=+macosx_10_9_x86_64.macosx_11_0_arm64 \ |
| 61 |
ninja-1.11.1-py2.py3-none-macosx_10_9_universal2.whl |
| 62 |
ninja-1.11.1-py2.py3-none-macosx_10_9_universal2.macosx_10_9_x86_64.macosx_11_0_arm64.whl |