Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display current wheel tag in repair error #460

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/auditwheel/main_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,15 @@ def execute(args, p):

if reqd_tag > get_priority_by_name(wheel_abi.sym_tag):
msg = (
'cannot repair "%s" to "%s" ABI because of the presence '
"of too-recent versioned symbols. You'll need to compile "
"the wheel on an older toolchain." % (wheel_file, args.PLAT)
f'cannot repair "{wheel_file}" to "{args.PLAT}" ABI because of '
"the presence of too-recent versioned symbols. You'll need "
"to compile the wheel on an older toolchain. "
)
if reqd_tag != 0:
msg += (
"At the moment this wheel is compliant with the "
f'"{wheel_abi.sym_tag}" platform tag.'
)
p.error(msg)

if reqd_tag > get_priority_by_name(wheel_abi.ucs_tag):
Expand Down