]> code.ossystems Code Review - openembedded-core.git/commit
python: don't include -tests with modules
authorMark Asselstine <mark.asselstine@windriver.com>
Tue, 1 Aug 2017 13:51:12 +0000 (09:51 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Aug 2017 10:14:04 +0000 (11:14 +0100)
commita5bb13a5d7d7a668ca61da6b17884e3b05b95355
treed4fb73daacedf1e67fc091ef8dcf340f56d1601e
parent5619e72facbc9228d3cf8f844f198e03b536ac8c
python: don't include -tests with modules

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.

The generator scripts as well as the manifests have thus been modified
accordingly, providing a generic mechanism to exclude modules from the
'all modules' package.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python-2.7-manifest.inc
meta/recipes-devtools/python/python-3.5-manifest.inc
scripts/contrib/python/generate-manifest-2.7.py
scripts/contrib/python/generate-manifest-3.5.py