@@ -461,7 +461,12 @@ def anylinux(
461
461
462
462
with docker_container_ctx (manylinux_img , io_folder , env ) as container :
463
463
platform_tag = "." .join (
464
- [f"{ p } _{ PLATFORM } " for p in [policy , * POLICY_ALIASES .get (policy , [])]]
464
+ sorted (
465
+ [
466
+ f"{ p } _{ PLATFORM } "
467
+ for p in [policy , * POLICY_ALIASES .get (policy , [])]
468
+ ]
469
+ )
465
470
)
466
471
yield AnyLinuxContainer (
467
472
f"{ policy } _{ PLATFORM } " , platform_tag , container , io_folder
@@ -813,9 +818,9 @@ def test_cross_repair(
813
818
else :
814
819
assert libc == Libc .GLIBC
815
820
source = "glibc"
816
- platform_tag = f"manylinux_2_17_ { arch .value } .manylinux2014_ { arch .value } "
821
+ platform_tag = f"manylinux2014_ { arch .value } .manylinux_2_17_ { arch .value } "
817
822
if arch in {Architecture .x86_64 , Architecture .i686 }:
818
- platform_tag = f"manylinux_2_5_ { arch .value } .manylinux1_ { arch .value } "
823
+ platform_tag = f"manylinux1_ { arch .value } .manylinux_2_5_ { arch .value } "
819
824
elif arch == Architecture .riscv64 :
820
825
platform_tag = f"manylinux_2_31_{ arch .value } "
821
826
python_abi = "cp313-cp313"
@@ -939,24 +944,26 @@ def test_compat(
939
944
940
945
if PLATFORM in {"x86_64" , "i686" }:
941
946
expect = f"manylinux_2_5_{ PLATFORM } "
942
- expect_tag = f"manylinux_2_5_ { PLATFORM } .manylinux1_ { PLATFORM } "
947
+ expect_tag = f"manylinux1_ { PLATFORM } .manylinux_2_5_ { PLATFORM } "
943
948
else :
944
949
expect = f"manylinux_2_17_{ PLATFORM } "
945
- expect_tag = f"manylinux_2_17_ { PLATFORM } .manylinux2014_ { PLATFORM } "
950
+ expect_tag = f"manylinux2014_ { PLATFORM } .manylinux_2_17_ { PLATFORM } "
946
951
947
952
target_tag = target_policy
948
953
for pep600_policy , aliases in POLICY_ALIASES .items ():
949
954
policy_ = f"{ pep600_policy } _{ PLATFORM } "
950
955
aliases_ = [f"{ p } _{ PLATFORM } " for p in aliases ]
951
956
if target_policy == policy_ or target_policy in aliases_ :
952
- target_tag = f" { policy_ } . { '.' . join (aliases_ ) } "
957
+ target_tag = "." . join (sorted ([ policy_ , * aliases_ ]))
953
958
954
959
# we shall ba able to repair the wheel for all targets
955
960
anylinux .repair (orig_wheel , plat = target_policy , only_plat = only_plat )
956
961
if only_plat or target_tag == expect_tag :
957
962
repaired_tag = target_tag
958
963
else :
959
- repaired_tag = f"{ expect_tag } .{ target_tag } "
964
+ repaired_tag = "." .join (
965
+ sorted (expect_tag .split ("." ) + target_tag .split ("." ))
966
+ )
960
967
repaired_wheel = anylinux .check_wheel ("testsimple" , platform_tag = repaired_tag )
961
968
962
969
assert_show_output (anylinux , repaired_wheel , expect , True )
0 commit comments