[OE-core] [PATCH] python: don't include -tests with modules

Richard Purdie richard.purdie at linuxfoundation.org
Thu Jul 27 21:39:07 UTC 2017


On Mon, 2017-07-24 at 12:10 -0400, Mark Asselstine wrote:
> Although 'test' is listed in the python module list
> (https://docs.python.org/3/py-modindex.html) it is meant only to be
> used 'internally' by folks developing python itself. Per the
> documentation:
> 
>   Note The test package is meant for internal use by Python only. It
>   is documented for the benefit of the core developers of Python. Any
>   use of this package outside of Python’s standard library is
>   discouraged as code mentioned here can change or be removed without
>   notice between releases of Python.
> 
> Per the above it is best not to include this module to discourage
> folks who might not head the above warnings. Additionally this module
> is one of the largest py modules going, by dropping this unneeded
> module from the 'modules' package we can reduce overall image size,
> something which is important for many embedded deployments.
> 
> Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
> ---
>  meta/recipes-devtools/python/python-2.7-manifest.inc | 2 +-
>  meta/recipes-devtools/python/python-3.5-manifest.inc | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

As per the comments at the top of these files, the generator scripts
need to be fixed too?

Cheers,

Richard



More information about the Openembedded-core mailing list