Skip to content

Commit

Permalink
setup: update build target for aarch64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattthebaker committed Apr 24, 2022
1 parent 06174a5 commit 0d892b6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
import platform
import sys

machine = os.environ['MACHINE'] if 'MACHINE' in os.environ else ("arm" if ("arm" in platform.machine()) or ("aarch64" in platform.machine()) else ("x64" if sys.maxsize > 2**32 else "x86"))
if 'MACHINE' in os.environ:
machine = os.environ['MACHINE']
elif "arm" in platform.machine():
machine = "arm"
elif "aarch64" in platform.machine():
machine = "aarch64"
elif sys.maxsize > 2**32:
machine = "x64"
else:
machine = "x86"
root = os.path.dirname(os.path.abspath(__file__))
dest = os.path.join("mbientlab", "metawear")

Expand Down

0 comments on commit 0d892b6

Please sign in to comment.