@@ -367,7 +367,7 @@ def download(self):
367367 debug ('* Expected md5sum: {}' .format (expected_md5 ))
368368 raise ValueError (
369369 ('Generated md5sum does not match expected md5sum '
370- 'for {} recipe' ).format (self .name ))
370+ 'for {} recipe' ).format (self .name ))
371371 else :
372372 info ('{} download already cached, skipping' .format (self .name ))
373373
@@ -410,10 +410,11 @@ def unpack(self, arch):
410410 try :
411411 sh .unzip (extraction_filename )
412412 except (sh .ErrorReturnCode_1 , sh .ErrorReturnCode_2 ):
413- pass # return code 1 means unzipping had
414- # warnings but did complete,
415- # apparently happens sometimes with
416- # github zips
413+ # return code 1 means unzipping had
414+ # warnings but did complete,
415+ # apparently happens sometimes with
416+ # github zips
417+ pass
417418 import zipfile
418419 fileh = zipfile .ZipFile (extraction_filename , 'r' )
419420 root_directory = fileh .filelist [0 ].filename .split ('/' )[0 ]
@@ -765,8 +766,8 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
765766 env ['PYTHON_ROOT' ] = self .ctx .get_python_install_dir ()
766767 env ['CFLAGS' ] += ' -I' + env [
767768 'PYTHON_ROOT' ] + '/include/python2.7'
768- env ['LDFLAGS' ] += ' -L' + env [ 'PYTHON_ROOT' ] + '/lib' + \
769- ' -lpython2.7'
769+ env ['LDFLAGS' ] += (
770+ ' -L' + env [ 'PYTHON_ROOT' ] + '/lib' + ' -lpython2.7' )
770771 elif self .ctx .python_recipe .from_crystax :
771772 ndk_dir_python = join (self .ctx .ndk_dir , 'sources' ,
772773 'python' , python_version )
@@ -783,9 +784,9 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
783784 env ['CFLAGS' ] += ' -I' + env [
784785 'PYTHON_ROOT' ] + '/include/python{}m' .format (
785786 python_short_version )
786- env ['LDFLAGS' ] += ' -L' + env [ 'PYTHON_ROOT' ] + '/lib' + \
787- ' -lpython{}m' . format (
788- python_short_version )
787+ env ['LDFLAGS' ] += (
788+ ' -L' + env [ 'PYTHON_ROOT' ] + '/lib' +
789+ ' -lpython{}m' . format ( python_short_version ) )
789790 hppath = []
790791 hppath .append (join (dirname (self .hostpython_location ), 'Lib' ))
791792 hppath .append (join (hppath [0 ], 'site-packages' ))
@@ -920,12 +921,14 @@ def get_recipe_env(self, arch):
920921 arch_noeabi = arch .arch .replace ('eabi' , '' )
921922 )
922923 env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
923- env ['CFLAGS' ] += " -I{ctx.ndk_dir}/platforms/android-{ctx.android_api}/arch-{arch_noeabi}/usr/include" \
924- " -I{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/include" \
925- " -I{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}/include" .format (** keys )
924+ env ['CFLAGS' ] += (
925+ " -I{ctx.ndk_dir}/platforms/android-{ctx.android_api}/arch-{arch_noeabi}/usr/include" +
926+ " -I{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/include" +
927+ " -I{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}/include" .format (** keys ))
926928 env ['CXXFLAGS' ] = env ['CFLAGS' ] + ' -frtti -fexceptions'
927- env ['LDFLAGS' ] += " -L{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}" \
928- " -lgnustl_shared" .format (** keys )
929+ env ['LDFLAGS' ] += (
930+ " -L{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}" +
931+ " -lgnustl_shared" .format (** keys ))
929932
930933 return env
931934
0 commit comments