From 335a845c8d090709f193dcf97efefdb949e3e560 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sat, 8 Oct 2016 17:18:52 +0100 Subject: [PATCH] Fixed 64 bit detection (it failed under python3) --- buildozer/targets/android.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index bbca16e..13e1ba3 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -27,6 +27,7 @@ from buildozer import IS_PY3 from buildozer.target import Target from os import environ from os.path import exists, join, realpath, expanduser, basename, relpath +from platform import architecture from shutil import copyfile from glob import glob @@ -447,7 +448,7 @@ class TargetAndroid(Target): show_output=False) if returncode != 1: self.buildozer.error('Aidl cannot be executed') - if sys.maxint > 2**32: + if architecture()[0] == '64bit': self.buildozer.error('') self.buildozer.error( 'You might have missed to install 32bits libs')