@@ -21,7 +21,10 @@ def run_distribute(self):
21
21
fileh .write ('sdk.dir={}' .format (self .ctx .sdk_dir ))
22
22
23
23
# AND: Hardcoding armeabi - naughty!
24
- arch = ArchARM (self .ctx )
24
+ arch = self .ctx .archs [0 ]
25
+ if len (self .ctx .archs ) > 1 :
26
+ raise ValueError ('built for more than one arch, but bootstrap cannot handle that yet' )
27
+ info ('Bootstrap running with arch {}' .format (arch ))
25
28
26
29
with current_directory (self .dist_dir ):
27
30
info ('Copying python distribution' )
@@ -32,7 +35,6 @@ def run_distribute(self):
32
35
shprint (sh .mkdir , 'assets' )
33
36
34
37
hostpython = sh .Command (self .ctx .hostpython )
35
- # AND: This *doesn't* need to be in arm env?
36
38
shprint (hostpython , '-OO' , '-m' , 'compileall' ,
37
39
self .ctx .get_python_install_dir (),
38
40
_tail = 10 , _filterout = "^Listing" , _critical = True )
@@ -50,8 +52,8 @@ def run_distribute(self):
50
52
shprint (sh .mkdir , '-p' , join ('private' , 'include' , 'python2.7' ))
51
53
52
54
# AND: Copylibs stuff should go here
53
- if exists (join ('libs' , 'armeabi' , 'libpymodules.so' )):
54
- shprint (sh .mv , join ('libs' , 'armeabi' , 'libpymodules.so' ), 'private/' )
55
+ if exists (join ('libs' , arch . arch , 'libpymodules.so' )):
56
+ shprint (sh .mv , join ('libs' , arch . arch , 'libpymodules.so' ), 'private/' )
55
57
shprint (sh .cp , join ('python-install' , 'include' , 'python2.7' , 'pyconfig.h' ), join ('private' , 'include' , 'python2.7/' ))
56
58
57
59
info ('Removing some unwanted files' )
0 commit comments