Skip to content

Commit

Permalink
Merge pull request #114 from ab-gh/master
Browse files Browse the repository at this point in the history
fixes platform identification in setup.py to work correctly with M1/M2 Mac
  • Loading branch information
coldfix committed Oct 4, 2022
2 parents 1ead44e + fc26919 commit 20c30fa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@
def cythonize(extensions):
return extensions

# Windows: win32/win-amd64
# Linux: linux-x86_64/...
# Mac: darwin*
IS_WIN = get_platform().startswith('win')
IS_ARM = get_platform().startswith('linux-aarch')
# Windows: win32/win-amd64
# Linux: linux-x86_64/...
# Mac Intel: darwin*
# Mac Apple Silicon: *-arm64
platform = get_platform()
IS_WIN = platform.startswith('win')
IS_ARM = platform.startswith('linux-aarch') or platform.endswith('arm64')


# We parse command line options using our own mechanim. We could use
Expand Down

0 comments on commit 20c30fa

Please sign in to comment.