Skip to content

Commit

Permalink
Add support for apple silicon build tag (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
p208p2002 authored Sep 21, 2022
1 parent 8dc0541 commit 30fefd7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,13 @@ def _determine_platform_tag():

if sys.platform == 'darwin':
_, _, _, _, machine = os.uname()
return 'macosx-10.9-{}'.format(machine)

if machine == 'x86_64':
return 'macosx-10.9-{}'.format(machine)
if machine == 'arm64':
return 'macosx-11.0-{}'.format(machine)
else:
raise NotImplementedError

if os.name == 'posix':
_, _, _, _, machine = os.uname()
return 'manylinux1-{}'.format(machine)
Expand Down

0 comments on commit 30fefd7

Please sign in to comment.