@@ -173,8 +173,6 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
173173 if self ._build_env_prepared :
174174 return
175175
176- # AND: This needs revamping to carefully check each dependency
177- # in turn
178176 ok = True
179177
180178 # Work out where the Android SDK is
@@ -186,7 +184,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
186184 if sdk_dir is None : # This seems used more conventionally
187185 sdk_dir = environ .get ('ANDROID_HOME' , None )
188186 if sdk_dir is None : # Checks in the buildozer SDK dir, useful
189- # # for debug tests of p4a
187+ # for debug tests of p4a
190188 possible_dirs = glob .glob (expanduser (join (
191189 '~' , '.buildozer' , 'android' , 'platform' , 'android-sdk-*' )))
192190 possible_dirs = [d for d in possible_dirs if not
@@ -325,8 +323,9 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
325323 warning ('If the NDK dir result is correct, you don\' t '
326324 'need to manually set the NDK ver.' )
327325 if ndk_ver is None :
328- warning ('Android NDK version could not be found, exiting.' )
329- exit (1 )
326+ warning ('Android NDK version could not be found. This probably'
327+ 'won\' t cause any problems, but if necessary you can'
328+ 'set it with `--ndk-version=...`.' )
330329 self .ndk_ver = ndk_ver
331330
332331 info ('Using {} NDK {}' .format (self .ndk .capitalize (), self .ndk_ver ))
@@ -361,7 +360,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
361360 ok = False
362361 warning ("Missing requirement: cython is not installed" )
363362
364- # AND: need to change if supporting multiple archs at once
363+ # This would need to be changed if supporting multiarch APKs
365364 arch = self .archs [0 ]
366365 platform_dir = arch .platform_dir
367366 toolchain_prefix = arch .toolchain_prefix
@@ -498,7 +497,7 @@ def get_site_packages_dir(self, arch=None):
498497 dir.
499498 '''
500499
501- # AND: This *must* be replaced with something more general in
500+ # This needs to be replaced with something more general in
502501 # order to support multiple python versions and/or multiple
503502 # archs.
504503 if self .python_recipe .from_crystax :
@@ -577,7 +576,6 @@ def build_recipes(build_order, python_modules, ctx):
577576 .format (recipe .name ))
578577
579578 # 4) biglink everything
580- # AND: Should make this optional
581579 info_main ('# Biglinking object files' )
582580 if not ctx .python_recipe or not ctx .python_recipe .from_crystax :
583581 biglink (ctx , arch )
0 commit comments