]> code.ossystems Code Review - openembedded-core.git/commit
python3: Improve handling of python3 manifest generation
authorNathan Rossi <nathan@nathanrossi.com>
Mon, 10 Aug 2020 12:47:36 +0000 (12:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Aug 2020 19:35:32 +0000 (20:35 +0100)
commitbef4be54e02df5f230d250487f85994a3b7bbd77
tree800e08bde158da4717f81ffd0a2f7bcfce5c7ea2
parent53bdf2d20077921bdf83641c365d60d85174f5b5
python3: Improve handling of python3 manifest generation

Specifically cover detection of modules within a python package that do
not import anything within their __init__.py. This is at least the case
with the xmlrpc package which is only used via its modules xmlrpc.server
and xmlrpc.client. Other important corner cases include ctypes.utils
which depends on some modules not used by ctypes.

This is implemented by generally assuming that importing all the modules
of a package (aka *.py within a package, excluding _*.py) will provide
enough information.

Also due to this change some modules import sysconfig, resulting in
sysconfigdata being imported. Handle the conversion of its path to a
wildcard based on the platform dependent name being replaced.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/get_module_deps3.py
meta/recipes-devtools/python/python3/python3-manifest.json