Skip to content

auditwheel -addtag failing with "No tags to be added. Exiting" #439

@julian-smith-artifex-com

Description

I am building a wheel using cibuildwheel in a manylinux docker image, with platform tag linux_x86_64. But when cibuildwheel runs auditwheel addtag it fails with diagnostic "No tags to be added. Exiting".

Can anyone explain what the diagnostic means, and why auditwheel is failing here? I was hoping that addtag would rename the wheel, e.g. changing the platform tag to manylinux_2_17_x86_64.manylinux2014_x86_64.

The input wheel has .so files created via SWIG. These .so's depend on .so files that are not in the wheel - they are actually in a different wheel (listed as a prerequisite using Requires-Dist in the metadata), hence i'm setting CIBW_REPAIR_WHEEL_COMMAND_LINUX to auditwheel addtag -w {dest_dir} {wheel} to avoid auditwheel failing because it thinks there are missing shared libraries. My build already takes care of setting rpath etc, so i only need auditwheel for platform tag-renaming.

[I'm using this scheme in order to save space on pypi.org - i'm putting my project's shared libraries that are not dependent on Python version (these are very large) in one wheel, and everything else in a second wheel, one for each supported Python version (3.8 - 3.11 at the moment).]

Thanks in advance for any help,

- Julian

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