@@ -41,12 +41,15 @@ def run_distribute(self):
41
41
shprint (sh .cp , '-a' , join (src_path , 'res' ), '.' )
42
42
shprint (sh .cp , '-a' , join (src_path , 'blacklist.txt' ), '.' )
43
43
shprint (sh .cp , '-a' , join (src_path , 'whitelist.txt' ), '.' )
44
-
44
+
45
45
info ('Copying python distribution' )
46
46
hostpython = sh .Command (self .ctx .hostpython )
47
47
# AND: This *doesn't* need to be in arm env?
48
- shprint (hostpython , '-OO' , '-m' , 'compileall' , self .ctx .get_python_install_dir (),
49
- _tail = 10 , _filterout = "^Listing" , _critical = True )
48
+ try :
49
+ shprint (hostpython , '-OO' , '-m' , 'compileall' , self .ctx .get_python_install_dir (),
50
+ _tail = 10 , _filterout = "^Listing" )
51
+ except sh .ErrorReturnCode :
52
+ pass
50
53
if not exists ('python-install' ):
51
54
shprint (sh .cp , '-a' , self .ctx .get_python_install_dir (), './python-install' )
52
55
@@ -58,7 +61,7 @@ def run_distribute(self):
58
61
if not exists (join ('private' , 'lib' )):
59
62
shprint (sh .cp , '-a' , join ('python-install' , 'lib' ), 'private' )
60
63
shprint (sh .mkdir , '-p' , join ('private' , 'include' , 'python2.7' ))
61
-
64
+
62
65
# AND: Copylibs stuff should go here
63
66
shprint (sh .mv , join ('libs' , arch .arch , 'libpymodules.so' ), 'private/' )
64
67
shprint (sh .cp , join ('python-install' , 'include' , 'python2.7' , 'pyconfig.h' ), join ('private' , 'include' , 'python2.7/' ))
0 commit comments