Bug 13549

Summary: Get rid of python2 runtime dependencies for all recipes in oe-core
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: High CC: liezhi.yang, meta.mr.watcher, meta.watcher, randy.macleod
Version: 3.1   
Target Milestone: 3.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Bug Depends on:    
Bug Blocks: 13640    

Description Chen Qi 2019-09-25 06:47:18 UTC
Get rid of python2 runtime dependencies for all recipes in oe-core except those that are python2 module recipes.
Comment 1 Ross Burton 2019-09-25 15:51:41 UTC
How are you defining 'python2 runtime'. Do you mean:
1) python2 needed on target
2) python2-native needed to build
3) python2 needed on host to build
Comment 2 Chen Qi 2019-09-26 01:03:20 UTC
Ross, I mean python2 needed on target.
Put another way, python-core should not be a runtime dependency for any package except the python-xxx packages.
Comment 3 Ross Burton 2019-09-26 10:01:33 UTC
I was under the impression that this was done.  What recipes in particular are you thinking of?
Comment 4 Ross Burton 2019-11-21 17:37:43 UTC
For target, this is done already with some caveats:

- u-boot needs python2 to build
- python-setuptools can be moved to meta-python(2)
- packagegroup-self-hosted needs Python 2.

I'd say that this aspect of Python 2 removal is done.