Difference between revisions of "Buildroot:Python2Packages"

From eLinux.org
Jump to: navigation, search
m (Python in the build system)
m (Python in the build system)
 
(5 intermediate revisions by the same user not shown)
Line 33: Line 33:
 
  endif
 
  endif
  
At the moment, the following packages reference host-python(2)
+
At the moment, the following packages reference host-python(2). In the following list, the packages that are <u>underlined</u> have been migrated and tested with only host-python3 by Titouan<ref>https://github.com/titouanc/buildroot/compare/master...py3</ref>. This be posted soon in a series to the mailing list.
  
* ca-certificates
+
* <u>ca-certificates</u>
* canfestival
+
* '''canfestival''': uses its script objdictgen as part of the build process. The whole code base is still syntactically Python3 incompatible
* host-dbus-python
+
* <u>host-dbus-python</u>
 
* host-gdb
 
* host-gdb
* gnuradio
+
* <u>gnuradio</u>
* gst1-validate
+
* <u>gst1-validate</u>
* host-gtest
+
* <u>host-gtest</u>
 
* libimxvpuapi
 
* libimxvpuapi
* libsigrock
+
* <u>libsigrock</u>
 
* libxcb
 
* libxcb
 
* midori
 
* midori
* nodejs
+
* '''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
 
* ogre
 
* ogre
* host-omniorb
+
* <u>host-omniorb</u>
 
* qpid-proton
 
* qpid-proton
 
* qt5webengine
 
* qt5webengine
 
* qt5webkit
 
* qt5webkit
* rust
+
* <u>rust</u>
 
* sdbusplus
 
* sdbusplus
* spidermonkey
+
* '''spidermonkey''': Still tightly coupled to Python2.7 (./configure attempts to find python2.7)
 
* tvheadend
 
* tvheadend
 
* webkitgtk
 
* webkitgtk

Latest revision as of 01:48, 27 July 2020

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 be posted soon in a series to the mailing list.

  • ca-certificates
  • canfestival: uses its script objdictgen as part of the build process. The whole code base is still syntactically Python3 incompatible
  • host-dbus-python
  • host-gdb
  • gnuradio
  • gst1-validate
  • host-gtest
  • libimxvpuapi
  • libsigrock
  • libxcb
  • midori
  • nodejs: the "active" version (12.x.y) does explicitly only support Python2 at the moment[2][3]. The "current" version (14.x.y) can be built with Python3[4]. 14.x.y is expected to become the "active" version on the 2020-10-20 [5], so we can drop host-python(2) support at that time
  • ogre
  • host-omniorb
  • qpid-proton
  • qt5webengine
  • qt5webkit
  • rust
  • sdbusplus
  • spidermonkey: Still tightly coupled to Python2.7 (./configure attempts to find python2.7)
  • 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