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
41import glob
2+ from os import walk
3+ from os .path import join , exists , curdir , abspath
54import sh
5+ from pythonforandroid .toolchain import Bootstrap , shprint , current_directory , info , warning , ArchARM , info_main
6+
67
78class ServiceOnlyBootstrap (Bootstrap ):
9+
810 name = 'service_only'
911
1012 recipe_depends = ['genericndkbuild' , ('python2' , 'python3crystax' )]
@@ -62,7 +64,7 @@ def run_distribute(self):
6264 # AND: Copylibs stuff should go here
6365 if exists (join ('libs' , arch .arch , 'libpymodules.so' )):
6466 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/' ))
6668
6769 info ('Removing some unwanted files' )
6870 shprint (sh .rm , '-f' , join ('private' , 'lib' , 'libpython2.7.so' ))
@@ -118,4 +120,5 @@ def run_distribute(self):
118120 self .fry_eggs (site_packages_dir )
119121 super (ServiceOnlyBootstrap , self ).run_distribute ()
120122
121- bootstrap = ServiceOnlyBootstrap ()
123+
124+ bootstrap = ServiceOnlyBootstrap ()
0 commit comments