Bug 11695

Summary: Add task to create python manifest(s) automatically
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alejandro Hernandez <alejandro.hernandez>
Component: devtools / tool chainAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: jose.perez.carranza, meta.mr.watcher, meta.watcher, ross.burton
Version: 2.4   
Target Milestone: 2.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: LET
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Bug Depends on: 11510    
Bug Blocks:    

Description Alejandro Hernandez 2017-06-20 23:33:59 UTC
A test to run on top of the testimage infrastructure should be created, this test should check every python package to see specifically which modules it needs, and will create a manifest file (JSON) automatically according to this information, the newly created file can be used to replace the current file.

This will ultimately get rid of all the new bugs we keep having every release of python, when some dependency between modules changes, and will make it easier to create new python packages.

This test can/should be run either on every release (of yocto or python) or when adding a new package if one is lazy enough to not check the modules the new package needs to work.
Comment 1 Ross Burton 2017-06-22 15:09:31 UTC
Not sure why this needs to use testimage.  If we assume that native python is the same version as target python then we can introspect the native python when that is built.
Comment 2 Alejandro Hernandez 2017-07-04 06:20:41 UTC
(In reply to comment #1)
> Not sure why this needs to use testimage.  If we assume that native python
> is the same version as target python then we can introspect the native
> python when that is built.

Completely agreed, should be possible to do it that way.
Comment 3 Alejandro Hernandez 2017-08-28 21:44:46 UTC
Done but moving to 2.5, per Richard's request
Comment 4 Ross Burton 2018-01-22 14:16:56 UTC
Fixed in oe-core 3328211afdef8ffb00dd4dff1143959d5412b075.