Skip to content

Commit c3a5020

Browse files
committed
Made clean-recipe-build command also clean from site-packages
1 parent e3650d7 commit c3a5020

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ def clean_build(self, arch=None):
582582
info('Deleting {}'.format(directory))
583583
shutil.rmtree(directory)
584584

585+
# Delete any Python distributions to ensure the recipe build
586+
# doesn't persist in site-packages
587+
shutil.rmtree(self.ctx.python_installs_dir)
588+
585589
def install_libs(self, arch, *libs):
586590
libs_dir = self.ctx.get_libs_dir(arch.arch)
587591
if not libs:

0 commit comments

Comments
 (0)