MCPcopy Index your code
hub / github.com/kivy/python-for-android / clean_build

Method clean_build

pythonforandroid/recipe.py:909–920  ·  view source on GitHub ↗
(self, arch=None)

Source from the content-addressed store, hash-verified

907 return super().prebuild_arch(arch)
908
909 def clean_build(self, arch=None):
910 super().clean_build(arch=arch)
911 name = self.folder_name
912 python_install_dirs = glob.glob(join(self.ctx.python_installs_dir, '*'))
913 for python_install in python_install_dirs:
914 site_packages_dir = glob.glob(join(python_install, 'lib', 'python*',
915 'site-packages'))
916 if site_packages_dir:
917 build_dir = join(site_packages_dir[0], name)
918 if exists(build_dir):
919 info('Deleted {}'.format(build_dir))
920 rmdir(build_dir)
921
922 @property
923 def real_hostpython_location(self):

Callers

nothing calls this directly

Calls 3

rmdirFunction · 0.90
formatMethod · 0.80
clean_buildMethod · 0.45

Tested by

no test coverage detected