@@ -267,7 +267,7 @@ def prepare_build_environment(self,
267267 d .endswith (('.bz2' , '.gz' ))]
268268 if possible_dirs :
269269 info ('Found possible SDK dirs in buildozer dir: {}' .format (
270- ', ' .join ([ d .split (os .sep )[- 1 ] for d in possible_dirs ] )))
270+ ', ' .join (d .split (os .sep )[- 1 ] for d in possible_dirs )))
271271 info ('Will attempt to use SDK at {}' .format (possible_dirs [0 ]))
272272 warning ('This SDK lookup is intended for debug only, if you '
273273 'use python-for-android much you should probably '
@@ -328,7 +328,7 @@ def prepare_build_environment(self,
328328 '~' , '.buildozer' , 'android' , 'platform' , 'android-ndk-r*' )))
329329 if possible_dirs :
330330 info ('Found possible NDK dirs in buildozer dir: {}' .format (
331- ', ' .join ([ d .split (os .sep )[- 1 ] for d in possible_dirs ] )))
331+ ', ' .join (d .split (os .sep )[- 1 ] for d in possible_dirs )))
332332 info ('Will attempt to use NDK at {}' .format (possible_dirs [0 ]))
333333 warning ('This NDK lookup is intended for debug only, if you '
334334 'use python-for-android much you should probably '
@@ -479,7 +479,7 @@ def set_archs(self, arch_names):
479479 if not self .archs :
480480 raise BuildInterruptingException ('Asked to compile for no Archs, so failing.' )
481481 info ('Will compile for the following archs: {}' .format (
482- ', ' .join ([ arch .arch for arch in self .archs ] )))
482+ ', ' .join (arch .arch for arch in self .archs )))
483483
484484 def prepare_bootstrap (self , bs ):
485485 bs .ctx = self
@@ -894,7 +894,9 @@ def biglink(ctx, arch):
894894 env = env )
895895
896896
897- def biglink_function (soname , objs_paths , extra_link_dirs = [], env = None ):
897+ def biglink_function (soname , objs_paths , extra_link_dirs = None , env = None ):
898+ if extra_link_dirs is None :
899+ extra_link_dirs = []
898900 print ('objs_paths are' , objs_paths )
899901 sofiles = []
900902
@@ -941,7 +943,9 @@ def biglink_function(soname, objs_paths, extra_link_dirs=[], env=None):
941943 shprint (cc , '-shared' , '-O3' , '-o' , soname , * unique_args , _env = env )
942944
943945
944- def copylibs_function (soname , objs_paths , extra_link_dirs = [], env = None ):
946+ def copylibs_function (soname , objs_paths , extra_link_dirs = None , env = None ):
947+ if extra_link_dirs is None :
948+ extra_link_dirs = []
945949 print ('objs_paths are' , objs_paths )
946950
947951 re_needso = re .compile (r'^.*\(NEEDED\)\s+Shared library: \[lib(.*)\.so\]\s*$' )
0 commit comments