8000 Update build.py · marcopifferi/python-for-android@2faea4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2faea4a

Browse files
authored
Update build.py
1 parent 21bc8b8 commit 2faea4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonforandroid/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,17 @@ def prepare_build_environment(self,
248248
self.android_api),
249249
instructions='You probably want to build with --arch=armeabi-v7a instead')
250250

251+
info('Checking SDK: {}'.format(sdk_dir))
251252
if exists 7CDF (join(sdk_dir, 'tools', 'bin', 'avdmanager')):
253+
info('valid adv manager:')
252254
avdmanager = sh.Command(join(sdk_dir, 'tools', 'bin', 'avdmanager'))
253255
targets = avdmanager('list', 'target').stdout.decode('utf-8').split('\n')
254256
elif exists(join(sdk_dir, 'tools', 'android')):
257+
info('valid android:')
255258
android = sh.Command(join(sdk_dir, 'tools', 'android'))
256259
targets = android('list').stdout.decode('utf-8').split('\n')
257260
else:
261+
info('Could not find `android` or `sdkmanager`')
258262
raise BuildInterruptingException(
259263
'Could not find `android` or `sdkmanager` binaries in Android SDK',
260264
instructions='Make sure the path to the Android SDK is correct')

0 commit comments

Comments
 (0)
0