I'm building a yocto image (zeus) which requires python3, but the resulting file is quite large mainly due to the __pycache__ directories which contain *.pyc and *.pyo files. These files are the python cache that, I think, can be regenerated during the first run if needed. Now my concerning is the final image size and I'd like to get rid of these files to save space.
Is there any python 3 recipe configuration I can change in a .bbappend to prevent creation of these files?