Skip to content

Commit 38496c6

Browse files
committed
update addtags
1 parent 3ac3ed5 commit 38496c6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bindings/python/addtags.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dependencies:
2-
# - auditwheel>=5,<7
2+
# - auditwheel>=6,<7
33
# Requires AUDITWHEEL_PLAT to be set (e.g. manylinux2014_x86_64)
44
# Usage:
55
# $ python addtags.py WHEEL_PATH WHEEL_DIR
@@ -8,7 +8,7 @@
88
from os.path import join as pjoin
99
from sys import argv
1010

11-
from auditwheel.policy import get_priority_by_name, get_replace_platforms
11+
from auditwheel.policy import WheelPolicies, get_replace_platforms
1212
from auditwheel.wheel_abi import analyze_wheel_abi
1313
from auditwheel.wheeltools import InWheelCtx, add_platforms
1414

@@ -29,12 +29,13 @@ def main(wheel_path, abi, wheel_dir):
2929
if not exists(wheel_dir):
3030
os.makedirs(wheel_dir)
3131

32-
reqd_tag = get_priority_by_name(abi)
32+
policies = WheelPolicies()
33+
reqd_tag = policies.get_priority_by_name(abi)
3334
out_wheel = repair_wheel(wheel_path, abi, wheel_dir)
3435

3536
if out_wheel is not None:
3637
analyzed_tag = analyze_wheel_abi(out_wheel).overall_tag
37-
if reqd_tag < get_priority_by_name(analyzed_tag):
38+
if reqd_tag < policies.get_priority_by_name(analyzed_tag):
3839
print(
3940
"Wheel is eligible for a higher priority tag. "
4041
f"You requested {abi} but I have found this wheel is "

bindings/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ archs = "x86_64 aarch64"
8787
manylinux-x86_64-image = "manylinux_2_28"
8888
manylinux-aarch64-image = "manylinux_2_28"
8989
repair-wheel-command = [
90-
"pip install \"auditwheel>=5,<7\"",
90+
"pip install \"auditwheel>=6,<7\"",
9191
"python addtags.py {wheel} {dest_dir}"
9292
]
9393

0 commit comments

Comments
 (0)