8000 Compressed tag sets are not sorted when rewriting wheel filename. · Issue #583 · pypa/auditwheel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Compressed tag sets are not sorted when rewriting wheel filename. #583
Closed
@di

Description

@di

In https://peps.python.org/pep-0425/#compressed-tag-sets, it says:

To allow for compact filenames of bdists that work with more than one compatibility tag triple, each tag in a filename can instead be a ‘.’-separated, sorted, set of tags.

However, it doesn't seem like auditwheel is enforcing any particular ordering when rewriting wheel filenames that contain compressed tag sets:

$ docker run -it quay.io/pypa/manylinux2014

[root@59a3658c0a30 /]# curl -s https://files.pythonhosted.org/packages/25/c1/5cb7afca89d45a3b85dfde9b46ba06fb5cbf6d7fb9760eaae880eb3e9143/pyvirtualcam-0.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -o pyvirtualcam-0.13.0-cp39-cp39-linux_x86_64.whl

[root@59a3658c0a30 /]# auditwheel repair pyvirtualcam-0.13.0-cp39-cp39-linux_x86_64.whl
INFO:auditwheel.main_repair:Repairing pyvirtualcam-0.13.0-cp39-cp39-linux_x86_64.whl
INFO:auditwheel.wheeltools:Previous filename tags: linux_x86_64
INFO:auditwheel.wheeltools:New filename tags: manylinux_2_17_x86_64, manylinux2014_x86_64
INFO:auditwheel.wheeltools:Previous WHEEL info tags: cp310-cp310-manylinux_2_17_x86_64, cp310-cp310-manylinux2014_x86_64
INFO:auditwheel.wheeltools:No WHEEL info change needed.
INFO:auditwheel.main_repair:
Fixed-up wheel written to /wheelhouse/pyvirtualcam-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

This should instead create the new filename pyvirtualcam-0.13.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl, since:

>>> sorted(['manylinux_2_17_x86_64','manylinux2014_x86_64'])
['manylinux2014_x86_64', 'manylinux_2_17_x86_64']

This was originally reported in pypi/warehouse#18128.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0