Skip to content

Commit

Permalink
Merge pull request #60 from adamantike/fix-armv6-detection
Browse files Browse the repository at this point in the history
Fix armv6 platform detection
  • Loading branch information
markop159 authored Feb 5, 2017
2 parents a959873 + cf0b7ae commit ff9057b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
import sys, os
import os
import sys


class Platform(object):
class __metaclass__(type):
Expand All @@ -9,8 +11,6 @@ def __getattr__(cls, name):

def _arch(cls):
if sys.platform.lower().startswith('linux') and (os.uname()[4].lower().startswith('arm') or os.uname()[4].lower().startswith('aarch')):
if os.uname()[4].lower().startswith('armv6'):
cls.arch = 'armv6'
cls.arch = 'arm'
elif sys.maxsize > 2**32 or sys.platform.lower().startswith('linux') and os.uname()[4].lower().startswith('x86_64'):
cls.arch = 'x64'
Expand Down

0 comments on commit ff9057b

Please sign in to comment.