Skip to content

Commit

Permalink
Unconditionally add limited ABI support to each version.
Browse files Browse the repository at this point in the history
On Windows imp.get_suffixes() doesn't return the limited ABI
as supported even though - when carefully building an extension -
it is (see the discussion on pypa/pip#4445).
  • Loading branch information
stewartmiles committed Sep 30, 2024
1 parent 0265462 commit ef01e2a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions distlib/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,11 +1039,14 @@ def __str__(self):
for i, version_object in enumerate(versions):
version = str(version_object)
add_abis = []

if i == 0:
add_abis = abis
elif IMP_PREFIX == 'cp' and version_object.major_minor >= (3, 2):

if IMP_PREFIX == 'cp' and version_object.major_minor >= (3, 2):
limited_api_abi = 'abi' + str(version_object.major)
add_abis = [limited_api_abi]
if limited_api_abi not in add_abis:
add_abis.append(limited_api_abi)

for abi in add_abis:
for arch in arches:
Expand Down

0 comments on commit ef01e2a

Please sign in to comment.