Migration to Python 3: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
mNo edit summary
Updated to reflect sunsetting of Python 2
 
Line 1: Line 1:
After a successful GOSC 2017 project that brought Python 3 (3.6 exactly) to Kodi it was decided that starting one of the next releases (19 M* preliminarily) Kodi will include a Python 3 as a an environment for running Python addons. Since Python 3 is not backward compatible with 2.x versions addon developers will have to convert their addons to Python 2/3-compatible code so that their addons will run both in current and future Kodi versions. This page contains information that should help addon developers in this conversion process.
After a successful GSOC 2017 project that brought Python 3 (3.6 exactly) to Kodi it was decided that Kodi 19.x Matrix would switch to Python 3 as an environment for running Python addons. Enough time has now passed that the last Python 2 release, Leia, has aged out of support. Therefore, all addon contributions must be Python 3-compatible.
 
Since Python 3 is not backward compatible with 2.x versions, developers of older addons must convert their addons to be Python 3-compatible so that their addons will continue to run on current and future Kodi versions. This page contains information that should help addon developers in this conversion process.


* [[General information about migration to Python 3]]
* [[General information about migration to Python 3]]
* [https://forum.kodi.tv/forumdisplay.php?fid=281 Python 3 migration section on the Kodi forum]
* [https://forum.kodi.tv/forumdisplay.php?fid=281 Python 3 migration section on the Kodi forum]
 
* [https://kodi.tv/article/the-sun-sets-on-python-2/ The Sun Sets on Python 2]


[[Category:Development]]
[[Category:Development]]

Latest revision as of 20:44, 2 August 2024

After a successful GSOC 2017 project that brought Python 3 (3.6 exactly) to Kodi it was decided that Kodi 19.x Matrix would switch to Python 3 as an environment for running Python addons. Enough time has now passed that the last Python 2 release, Leia, has aged out of support. Therefore, all addon contributions must be Python 3-compatible.

Since Python 3 is not backward compatible with 2.x versions, developers of older addons must convert their addons to be Python 3-compatible so that their addons will continue to run on current and future Kodi versions. This page contains information that should help addon developers in this conversion process.