add linux arm support: RaspberryPi(armv7l) and aarch64

This commit is contained in:
j 2016-06-24 12:51:01 +02:00
commit 4c34cbed3c
4 changed files with 22 additions and 3 deletions

View file

@ -20,7 +20,12 @@ def get_platform():
name = 'darwin64'
elif name.startswith('linux'):
import platform
if platform.architecture()[0] == '64bit':
machine = platform.machine()
if machine == 'armv7l':
name = 'linux_armv7l'
elif machine == 'aarch64':
name = 'linux_aarch64'
elif machine == 'x86_64':
name = 'linux64'
else:
name = 'linux32'