Bug 13264

Summary: Refactor recipetool/devtool to support python3 (only)
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Tim Orling <tim.orling>
Component: Scripts and ToolsAssignee: Maciej Pijanowski <maciej.pijanowski>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: kergoth, maciej.pijanowski, ross.burton
Version: 2.8   
Target Milestone: 2.8 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Tim Orling 2019-04-03 22:37:59 UTC
Currently, recipetool (and therefore devtool) only knows how to create python2 recipes. To make it more useful and avoid obsolescence, port to python3 (dropping python2 support).
Comment 1 Christopher Larson 2019-04-11 17:59:28 UTC
I'm interested in working on this, or assisting in this work, but I need to check into resource availability at work to determine whether I'll have time within this Yocto development timeframe. Will comment again when I make that determination.
Comment 2 Maciej Pijanowski 2019-06-07 07:41:40 UTC
I've already submitted a patch to the ML. I've just looked through the 
create_buildsys_python.py and replaced python to python2 or renamed the classes
whenever necessary. Let me know if you think something else has to be done.

I've correctly created python3 recipe using this patch, as described in the 
git message. No python2 dependencies were pulled in.
Comment 3 Maciej Pijanowski 2019-06-10 18:26:30 UTC
Second patch revision (added tests): http://lists.openembedded.org/pipermail/openembedded-core/2019-June/283402.html
Comment 5 Paul Eggleton 2019-06-20 10:56:34 UTC
*** Bug 13083 has been marked as a duplicate of this bug. ***