@@ -267,7 +267,7 @@ def prepare_build_environment(self,
267
267
d .endswith (('.bz2' , '.gz' ))]
268
268
if possible_dirs :
269
269
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 )))
271
271
info ('Will attempt to use SDK at {}' .format (possible_dirs [0 ]))
272
272
warning ('This SDK lookup is intended for debug only, if you '
273
273
'use python-for-android much you should probably '
@@ -328,7 +328,7 @@ def prepare_build_environment(self,
328
328
'~' , '.buildozer' , 'android' , 'platform' , 'android-ndk-r*' )))
329
329
if possible_dirs :
330
330
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 )))
332
332
info ('Will attempt to use NDK at {}' .format (possible_dirs [0 ]))
333
333
warning ('This NDK lookup is intended for debug only, if you '
334
334
'use python-for-android much you should probably '
@@ -479,7 +479,7 @@ def set_archs(self, arch_names):
479
479
if not self .archs :
480
480
raise BuildInterruptingException ('Asked to compile for no Archs, so failing.' )
481
481
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 )))
483
483
484
484
def prepare_bootstrap (self , bs ):
485
485
bs .ctx = self
@@ -894,7 +894,9 @@ def biglink(ctx, arch):
894
894
env = env )
895
895
896
896
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 = []
898
900
print ('objs_paths are' , objs_paths )
899
901
sofiles = []
900
902
@@ -941,7 +943,9 @@ def biglink_function(soname, objs_paths, extra_link_dirs=[], env=None):
941
943
shprint (cc , '-shared' , '-O3' , '-o' , soname , * unique_args , _env = env )
942
944
943
945
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 = []
945
949
print ('objs_paths are' , objs_paths )
946
950
947
951
re_needso = re .compile (r'^.*\(NEEDED\)\s+Shared library: \[lib(.*)\.so\]\s*$' )
0 commit comments