Is there any way to disable __pycache__ creation in yocto?

Viewed 355

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?

1 Answers

I followed this advice " How to avoid .pyc files? " and it stopped the creation of the __pychache__ folder and contents.

Related