python3: remove unneeded __pycache__ directories
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 30 Sep 2014 21:38:57 +0000 (23:38 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 5 Oct 2014 12:32:41 +0000 (14:32 +0200)
commitce0f19e5f64364125448e91590e4843bb2f79570
tree87720d0ca625e0f6f58260a046537596f9c2ebc0
parentd02af2fd5324da2b9357a4ad3328545d8db45488
python3: remove unneeded __pycache__ directories

The __pycache__ directories are only needed on PEP3147-enabled
installations, which is not the choice Buildroot has made. However,
during the build process of the target Python, the separation between
the target and host Python is not entirely complete, and starting the
host Python to byte-compile the target Python modules triggers the
compilation of a bunch of __pycache__ directories by the host Python,
which uses a PEP 3147 installation.

For now, simply get rid of those useless directories after the
installation of Python is completed. In the long term, it would be
good to achieve a better isolation between the host and target build
to avoid this issue.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python3/python3.mk