[OE-core] python test files installed in image on purpose?
Andrew Geissler
geissonator at gmail.com
Fri Sep 7 19:02:57 UTC 2018
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
Thanks,
Andrew
More information about the Openembedded-core
mailing list