From 07fa5bcc93dfc6210b56e224bb3e21048cc4428f Mon Sep 17 00:00:00 2001 From: Aohan Dang Date: Wed, 9 Oct 2024 13:07:06 -0400 Subject: [PATCH] Detect the correct ABI tag for the debug free-threaded build of Python Swap the `t` and `d` flags to ensure that `t` comes first. This is due to https://github.com/pypa/packaging/blob/28e7da78f6f73b4856260e24051b35a4517c0149/src/packaging/tags.py#L180. --- delvewheel/_dll_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delvewheel/_dll_list.py b/delvewheel/_dll_list.py index af87467..6bd9287 100644 --- a/delvewheel/_dll_list.py +++ b/delvewheel/_dll_list.py @@ -61,7 +61,7 @@ def platform_tag_to_type(cls, tag: str) -> typing.Optional['MachineType']: # current and future Python versions through 3.99 'cp3(9|1[0-2]|(1[3-9]|[2-9][0-9])t?)-win_a(md|rm)64': {'vcruntime140.dll', 'vcruntime140_1.dll'}, 'cp3(9|1[0-2]|(1[3-9]|[2-9][0-9])t?)-win32': {'vcruntime140.dll'}, - 'cp3((9|1[0-2])d|(1[3-9]|[2-9][0-9])dt?)-win(32|_a(md|rm)64)': {'vcruntime140d.dll', 'ucrtbased.dll'}, + 'cp3((9|1[0-2])d|(1[3-9]|[2-9][0-9])t?d)-win(32|_a(md|rm)64)': {'vcruntime140d.dll', 'ucrtbased.dll'}, 'pypy3([7-9]|1[0-9]|[2-9][0-9])_pp73-win_amd64': {'vcruntime140.dll'}, # older versions of Python