Bug 7622 - python3 - bitbake support
Summary: python3 - bitbake support
Status: VERIFIED DUPLICATE of bug 2398
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.9
Assignee: Alexandru Damian
QA Contact: Cristina Agurida
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-16 22:26 UTC by Alexandru Damian
Modified: 2015-05-27 09:38 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Damian 2015-04-16 22:26:06 UTC
Python2 is set to be deprecated (end of life) in 2020.
http://legacy.python.org/dev/peps/pep-0373/

5 years ahead is a reasonable time length to start porting bitbake and relevant code from Python2 to Python3.
Debian's project to port the Python codebase already started:
https://lists.debian.org/debian-devel-announce/2015/04/msg00005.html

Django 1.6 which is used for Toaster already runs on Python3:
https://docs.djangoproject.com/en/1.8/topics/python3/

Python's porting documentation:
https://docs.python.org/3/howto/pyporting.html

This bug tracks the work needed to run bitbake under Python3. 

I propose using the Python 2/3 Compatible Source strategy, as used by Django, that enables the same code base to work without modification on both Python2 and Python3.
Comment 1 Stephen K Jolley 2015-04-30 14:38:11 UTC
This is the same bug as 2398

*** This bug has been marked as a duplicate of bug 2398 ***
Comment 2 Cristina Agurida 2015-05-27 09:38:22 UTC
Verified as duplicate.