[OE-core] python test files installed in image on purpose?

Richard Purdie richard.purdie at linuxfoundation.org
Tue Sep 11 11:01:04 UTC 2018


On Fri, 2018-09-07 at 14:02 -0500, Andrew Geissler wrote:
> Hi,
> 
> We've been running into some flash space issues over in the openbmc
> project. I noticed the python.bb file (python_2.7.14.bb for us) is
> installing some test folders/files in our rootfs image.
> 
> # find /usr/lib/python2.7/ -name "test" -print
> /usr/lib/python2.7/ctypes/test
> /usr/lib/python2.7/email/test
> 
> I'm looking to see if there's any functional reason these tests are
> included in the image.
> 
> In our compressed filesystem we're talking about ~150KB of space but
> right now that's a pretty big deal for us. Would the community be
> interested in a patch to not install (or make it an option like is
> done with INCLUDE_PYCS) these test files?  Or is this something we
> should just handle in a .bbappend file for our distro?
> 
> Here's a complete list of test directories in the python package.
> ./Python-2.7.14/Lib/bsddb/test
> ./Python-2.7.14/Lib/sqlite3/test
> ./Python-2.7.14/Lib/ctypes/test
> ./Python-2.7.14/Lib/unittest/test
> ./Python-2.7.14/Lib/lib-tk/test
> ./Python-2.7.14/Lib/email/test

These definitely sound like they should be put into a different package
which is related to testing and not installed otherwise. 

So yes, in principle these are exactly the kinds of fixes which should
be going into core!

Cheers,

Richard



More information about the Openembedded-core mailing list