Skip to content

Commit

Permalink
properly get package tags part IV
Browse files Browse the repository at this point in the history
  • Loading branch information
Koeng101 committed Aug 11, 2024
1 parent a662efd commit eb32ec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def get_platform_tag():
tag = next(tags.sys_tags())

if sys.platform.startswith('linux'):
return f'manylinux_2_17_{tag.arch}'
return f'manylinux_2_17_{platform.machine()}'
elif sys.platform.startswith('darwin'):
if platform.machine() == 'arm64':
return f'macosx_11_0_{tag.arch}'
return f'macosx_11_0_arm64'
else:
return f'macosx_10_9_{tag.arch}'
return f'macosx_10_9_x86_64'
elif sys.platform.startswith('win'):
return f'win_{tag.arch}'
return f'win_amd64'
else:
return 'any'

Expand Down

0 comments on commit eb32ec2

Please sign in to comment.