Merge pull request #409 from inclement/fix_64_bit_detection
Fixed 64 bit detection (it failed under python3)
This commit is contained in:
commit
5538431f33
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ from buildozer import IS_PY3
|
||||||
from buildozer.target import Target
|
from buildozer.target import Target
|
||||||
from os import environ
|
from os import environ
|
||||||
from os.path import exists, join, realpath, expanduser, basename, relpath
|
from os.path import exists, join, realpath, expanduser, basename, relpath
|
||||||
|
from platform import architecture
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
|
@ -445,7 +446,7 @@ class TargetAndroid(Target):
|
||||||
show_output=False)
|
show_output=False)
|
||||||
if returncode != 1:
|
if returncode != 1:
|
||||||
self.buildozer.error('Aidl cannot be executed')
|
self.buildozer.error('Aidl cannot be executed')
|
||||||
if sys.maxint > 2**32:
|
if architecture()[0] == '64bit':
|
||||||
self.buildozer.error('')
|
self.buildozer.error('')
|
||||||
self.buildozer.error(
|
self.buildozer.error(
|
||||||
'You might have missed to install 32bits libs')
|
'You might have missed to install 32bits libs')
|
||||||
|
|
Loading…
Reference in a new issue