@@ -24,31 +24,28 @@ def assemble_distribution(self):
24
24
with open ('local.properties' , 'w' ) as fileh :
25
25
fileh .write ('sdk.dir={}' .format (self .ctx .sdk_dir ))
26
26
27
- arch = self .ctx .archs [0 ]
28
- if len (self .ctx .archs ) > 1 :
29
- raise ValueError ('built for more than one arch, but bootstrap cannot handle that yet' )
30
- info ('Bootstrap running with arch {}' .format (arch ))
31
-
32
27
with current_directory (self .dist_dir ):
33
28
info ('Copying python distribution' )
34
29
35
- self .distribute_libs (arch , [self .ctx .get_libs_dir (arch .arch )])
36
- self .distribute_aars (arch )
37
30
self .distribute_javaclasses (self .ctx .javaclass_dir ,
38
31
dest_dir = join ("src" , "main" , "java" ))
39
32
40
- python_bundle_dir = join (f'_python_bundle__{ arch .arch } ' , '_python_bundle' )
41
- ensure_dir (python_bundle_dir )
42
- site_packages_dir = self .ctx .python_recipe .create_python_bundle (
43
- join (self .dist_dir , python_bundle_dir ), arch )
33
+ for arch in self .ctx .archs :
34
+ self .distribute_libs (arch , [self .ctx .get_libs_dir (arch .arch )])
35
+ self .distribute_aars (arch )
36
+
37
+ python_bundle_dir = join (f'_python_bundle__{ arch .arch } ' , '_python_bundle' )
38
+ ensure_dir (python_bundle_dir )
39
+ site_packages_dir = self .ctx .python_recipe .create_python_bundle (
40
+ join (self .dist_dir , python_bundle_dir ), arch )
41
+ if not self .ctx .with_debug_symbols :
42
+ self .strip_libraries (arch )
43
+ self .fry_eggs (site_packages_dir )
44
44
45
45
if 'sqlite3' not in self .ctx .recipe_build_order :
46
46
with open ('blacklist.txt' , 'a' ) as fileh :
47
47
fileh .write ('\n sqlite3/*\n lib-dynload/_sqlite3.so\n ' )
48
48
49
- if not self .ctx .with_debug_symbols :
50
- self .strip_libraries (arch )
51
- self .fry_eggs (site_packages_dir )
52
49
super ().assemble_distribution ()
53
50
54
51
0 commit comments