1
- from pythonforandroid .toolchain import Bootstrap , shprint , current_directory , info , warning , ArchARM , info_main
2
- from os .path import join , exists , curdir , abspath
3
- from os import walk
4
1
import glob
2
+ from os import walk
3
+ from os .path import join , exists , curdir , abspath
5
4
import sh
5
+ from pythonforandroid .toolchain import Bootstrap , shprint , current_directory , info , warning , ArchARM , info_main
6
+
6
7
7
8
class ServiceOnlyBootstrap (Bootstrap ):
9
+
8
10
name = 'service_only'
9
11
10
12
recipe_depends = ['genericndkbuild' , ('python2' , 'python3crystax' )]
@@ -62,7 +64,7 @@ def run_distribute(self):
62
64
# AND: Copylibs stuff should go here
63
65
if exists (join ('libs' , arch .arch , 'libpymodules.so' )):
64
66
shprint (sh .mv , join ('libs' , arch .arch , 'libpymodules.so' ), 'private/' )
65
- shprint (sh .cp , join ('python-install' , 'include' , 'python2.7' , 'pyconfig.h' ), join ('private' , 'include' , 'python2.7/' ))
67
+ shprint (sh .cp , join ('python-install' , 'include' , 'python2.7' , 'pyconfig.h' ), join ('private' , 'include' , 'python2.7/' ))
66
68
67
69
info ('Removing some unwanted files' )
68
70
shprint (sh .rm , '-f' , join ('private' , 'lib' , 'libpython2.7.so' ))
@@ -118,4 +120,5 @@ def run_distribute(self):
118
120
self .fry_eggs (site_packages_dir )
119
121
super (ServiceOnlyBootstrap , self ).run_distribute ()
120
122
121
- bootstrap = ServiceOnlyBootstrap ()
123
+
124
+ bootstrap = ServiceOnlyBootstrap ()
0 commit comments