python3-setuptools,python3-pip: Use more predictable pycache cleanup 9101/head
authorJeffery To <jeffery.to@gmail.com>
Wed, 29 May 2019 14:42:02 +0000 (22:42 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 29 May 2019 14:42:02 +0000 (22:42 +0800)
commitb8e7a197db135c2b8749ed3c7bf94b3e712e1283
treeb8deb3daf06c8b5fe4532c0a41f5d496f1f987e9
parentbe751236aac05cb0df7fc184691cf7d9cfe173d4
python3-setuptools,python3-pip: Use more predictable pycache cleanup

This uses two find commands to delete __pycache__ contents then the
__pycache__ directories, rather than a for loop.

The second command omits a -empty test, so that if the first command
doesn't remove all directory contents for some reason, the second
command will return an error (find will not delete a non-empty
directory).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python3/files/python3-package-pip.mk
lang/python/python3/files/python3-package-setuptools.mk