Difference between revisions of "Buildroot:Python2Packages"

From eLinux.org
Jump to: navigation, search
(3 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
* <s> Kodi: Upstream announces an ongoing effort to move to Python3 in the upcoming v19: https://kodi.wiki/view/Migration_to_Python_3. Only Python2 for now ! </s> DONE!
 
* <s> Kodi: Upstream announces an ongoing effort to move to Python3 in the upcoming v19: https://kodi.wiki/view/Migration_to_Python_3. Only Python2 for now ! </s> DONE!
 
* libdnet: latest release v1.11 dates back from 2005, and only talks about Py2.3 or 2.4. There is most probably no Python3 support, because the latter was released in 2008
 
* libdnet: latest release v1.11 dates back from 2005, and only talks about Py2.3 or 2.4. There is most probably no Python3 support, because the latter was released in 2008
* nmap: the ndiff utility is still tied to Python2, syntactically incompatible with Python3. There is a pull request to replace ndiff with pyndiff<ref>https://patchwork.ozlabs.org/project/buildroot/list/?series=266675</ref>
+
* <s>nmap</s>: Ndiff has been replaced with with pyndiff
 
* pcm-tools: the pmu-query script is still tied to Python2, syntactically incompatible with Python3
 
* pcm-tools: the pmu-query script is still tied to Python2, syntactically incompatible with Python3
 
* <s>supervisor: currently in v3.1.4, support for Python3 was added in v4.0.0 (https://github.com/Supervisor/supervisor/blob/master/CHANGES.rst#400-2019-04-05)</s> DONE!
 
* <s>supervisor: currently in v3.1.4, support for Python3 was added in v4.0.0 (https://github.com/Supervisor/supervisor/blob/master/CHANGES.rst#400-2019-04-05)</s> DONE!
Line 36: Line 36:
  
 
* <u>ca-certificates</u>
 
* <u>ca-certificates</u>
* '''canfestival''': uses its script objdictgen as part of the build process. The whole code base is still syntactically Python3 incompatible. A patch to remove the package is now available.<ref>https://patchwork.ozlabs.org/project/buildroot/patch/20211013180654.2514310-1-aduskett@gmail.com/</ref>
+
* <u>canfestival</u>: Removed
 
* <u>host-dbus-python</u>
 
* <u>host-dbus-python</u>
 
* host-gdb
 
* host-gdb
Line 46: Line 46:
 
* libxcb
 
* libxcb
 
* midori
 
* midori
* '''nodejs''': the "active" version (12.x.y) does explicitly only support Python2 at the moment<ref>https://github.com/nodejs/node/blob/v12.18.3/BUILDING.md#building-nodejs-on-supported-platforms</ref><ref>https://github.com/nodejs/node/blob/v12.18.0/configure</ref>. The "current" version (14.x.y) can be built with Python3<ref>https://github.com/nodejs/node/blob/v14.6.0/BUILDING.md#building-nodejs-on-supported-platforms</ref>. 14.x.y is expected to become the "active" version on the 2020-10-20 <ref>https://nodejs.org/en/about/releases/</ref>, so we can drop host-python(2) support at that time. There is now a pending pull request to bump nodejs to 14.17.6!<ref>https://patchwork.ozlabs.org/project/buildroot/list/?series=266149</ref>
+
* <u>nodejs</u>
 
* <u>ogre</u>
 
* <u>ogre</u>
 
* <u>host-omniorb</u>
 
* <u>host-omniorb</u>
Line 56: Line 56:
 
* <u>spidermonkey</u>: Removed! Spidermonkey was only used for Polkit which now used duktape as the backend.
 
* <u>spidermonkey</u>: Removed! Spidermonkey was only used for Polkit which now used duktape as the backend.
 
* tvheadend
 
* tvheadend
* webkitgtk
+
* <u>webkitgtk</u>
* wpewebkit There is a pending pull request to replace host-python with host-python3. wpewebkit compiles without issue with host-python3<ref>https://patchwork.ozlabs.org/project/buildroot/list/?series=266844</ref>
+
* <u>wpewebkit</u>
 
* xcb-proto, host-xcb-proto
 
* xcb-proto, host-xcb-proto
 
* zynq-boot-bin
 
* zynq-boot-bin

Revision as of 13:20, 21 October 2021

In an effort to follow the Python2 deprecation on the 1st of January 2020, here is a listing of current Buildroot packages that depend on Python2 (as of master during the [developer days at FOSDEM 2020])

Non Python packages

These packages integrate with Python2: either they contain scripts written in Python, or they install Python libraries as byproducts.

Python packages

(TBD) These packages are Python libraries that can then be imported by Python scripts

Python in the build system

These packages use Python in their build process, hence requiring host-python (or host-python3). We aim at removing dependencies on host-python(2) where possible, and therefore remove conditionals such as illustrated below. This should instead unconditionnally depend on host-python3 now:

ifeq ($(BR2_PACKAGE_PYTHON)
FOO_DEPENDENCIES += host-python
else
FOO_DEPENDENCIES += host-python3
endif

At the moment, the following packages reference host-python(2). In the following list, the packages that are underlined have been migrated and tested with only host-python3 by Titouan[1]. This will be posted soon in a series to the mailing list.

  • ca-certificates
  • canfestival: Removed
  • host-dbus-python
  • host-gdb
  • gnuradio
  • gst1-validate
  • host-gtest
  • libimxvpuapi
  • libsigrock
  • libxcb
  • midori
  • nodejs
  • ogre
  • host-omniorb
  • qpid-proton
  • qt5webengine
  • qt5webkit
  • rust
  • sdbusplus
  • spidermonkey: Removed! Spidermonkey was only used for Polkit which now used duktape as the backend.
  • tvheadend
  • webkitgtk
  • wpewebkit
  • xcb-proto, host-xcb-proto
  • zynq-boot-bin

waf

The waf-package infrastructure has been fully migrated to host-python3

Scons

All packages using SCons (no dedicated infrastructure) have been migrated to host-python3