Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 00/13] Reduce (but not completely eliminate yet) Python 2.x dependencies
Date: Thu, 27 Apr 2017 17:27:59 +0300	[thread overview]
Message-ID: <cover.1493302527.git.alexander.kanavin@linux.intel.com> (raw)

This patchset reduces the amount of Python 2.x dependencies in oe-core recipes.
Several approaches were taken:

1) If a recipe needs Python 2 only during build to run python scripts,
host python is used instead of natively build python.
2) If a recipe needs Python 2 at runtime because it packages some
python scripts, those scripts are changed to run under Python 3
whenever possible, or are removed if they are not useful in embedded context.
3) Some py2 library recipes are removed altogether, because nothing is
actually using them anymore.

There are still a few py2 holdouts:
- python-numpy (needed by a few recipes in meta-oe, shares code with python3-numpy)
- python-nose (dependency of python-numpy)
- python-scons (work to port it to py3 is ongoing now)
- python-setuptools (dependency of python-scons)
- bmap-tools
- ltp
- perf
- asciidoc

And a couple of packagegroups list python 2 as well:
- packagegroup-self-hosted
- packagegroup-core-lsb

Let's revisit the situation with the above in a year or so.

The following changes since commit c80cfab0828b653012e76eba86ed0d9084ff9d5b:

  rpm: properly relocate additional native tools (2017-04-25 14:05:30 +0300)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib akanavin/package-version-updates
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=akanavin/package-version-updates

Alexander Kanavin (13):
  asciidoc: drop distutils inherit, not actually required
  bmap-tools: switch to taking source from git
  mesa: remove the git recipe
  mesa: drop pythonnative inherit
  mklibs-native: remove native python dependency
  webkitgtk: remove native python dependency
  packagegroup-self-hosted: remove python-git dependency
  python-pycurl: remove the recipe
  python: remove unused 2.x versions of several packages
  opkg-utils: move to Python 3
  mc: do not package Python-based extfs helpers
  parted: move test helper scripts to Python 3
  kconfig-frontends: update to 4.10.0.1

 .../packagegroups/packagegroup-self-hosted.bb      |   2 -
 .../files/0001-Fix-installation-of-.pc-files.patch |  29 ++++++
 ...Switch-utils-kconfig-diff-to-use-Python-3.patch |  26 +++++
 ...s_3.12.0.0.bb => kconfig-frontends_4.10.0.1.bb} |   8 +-
 .../mklibs/mklibs-native_0.1.43.bb                 |   3 +-
 ...0001-Switch-all-scripts-to-use-Python-3.x.patch | 112 +++++++++++++++++++++
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |   5 +-
 meta/recipes-devtools/python/python-async_0.6.2.bb |   5 -
 meta/recipes-devtools/python/python-git_2.1.1.bb   |   7 --
 meta/recipes-devtools/python/python-gitdb_0.6.4.bb |   7 --
 meta/recipes-devtools/python/python-mako_1.0.6.bb  |  17 ----
 .../python/python-pexpect_4.2.1.bb                 |  28 ------
 .../python/python-ptyprocess_0.5.1.bb              |  23 -----
 meta/recipes-devtools/python/python-pycurl.inc     |  31 ------
 .../python/python-pycurl/no-static-link.patch      |  17 ----
 .../python/python-pycurl_7.21.5.bb                 |   3 -
 meta/recipes-devtools/python/python-six_1.10.0.bb  |   4 -
 meta/recipes-devtools/python/python-smmap_0.9.0.bb |   5 -
 .../python/python3-pycurl_7.21.5.bb                |   5 -
 meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb   |   2 +-
 meta/recipes-extended/mc/mc_4.8.18.bb              |   9 +-
 .../packagegroup-core-full-cmdline.bb              |   1 -
 .../packagegroups/packagegroup-core-lsb.bb         |   1 -
 ...-helper-scripts-used-only-in-tests-to-Pyt.patch |  44 ++++++++
 meta/recipes-extended/parted/parted_3.2.bb         |   3 +-
 meta/recipes-graphics/mesa/mesa.inc                |   2 +-
 meta/recipes-graphics/mesa/mesa_git.bb             |  22 ----
 meta/recipes-sato/webkit/webkitgtk_2.14.5.bb       |   7 +-
 meta/recipes-support/bmap-tools/bmap-tools_3.2.bb  |   9 +-
 29 files changed, 233 insertions(+), 204 deletions(-)
 create mode 100644 meta/recipes-devtools/kconfig-frontends/files/0001-Fix-installation-of-.pc-files.patch
 create mode 100644 meta/recipes-devtools/kconfig-frontends/files/0001-Switch-utils-kconfig-diff-to-use-Python-3.patch
 rename meta/recipes-devtools/kconfig-frontends/{kconfig-frontends_3.12.0.0.bb => kconfig-frontends_4.10.0.1.bb} (80%)
 create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/0001-Switch-all-scripts-to-use-Python-3.x.patch
 delete mode 100644 meta/recipes-devtools/python/python-async_0.6.2.bb
 delete mode 100644 meta/recipes-devtools/python/python-git_2.1.1.bb
 delete mode 100644 meta/recipes-devtools/python/python-gitdb_0.6.4.bb
 delete mode 100644 meta/recipes-devtools/python/python-mako_1.0.6.bb
 delete mode 100644 meta/recipes-devtools/python/python-pexpect_4.2.1.bb
 delete mode 100644 meta/recipes-devtools/python/python-ptyprocess_0.5.1.bb
 delete mode 100644 meta/recipes-devtools/python/python-pycurl.inc
 delete mode 100644 meta/recipes-devtools/python/python-pycurl/no-static-link.patch
 delete mode 100644 meta/recipes-devtools/python/python-pycurl_7.21.5.bb
 delete mode 100644 meta/recipes-devtools/python/python-six_1.10.0.bb
 delete mode 100644 meta/recipes-devtools/python/python-smmap_0.9.0.bb
 delete mode 100644 meta/recipes-devtools/python/python3-pycurl_7.21.5.bb
 create mode 100644 meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch
 delete mode 100644 meta/recipes-graphics/mesa/mesa_git.bb

-- 
2.11.0



             reply	other threads:[~2017-04-27 14:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27 14:27 Alexander Kanavin [this message]
2017-04-27 14:28 ` [PATCH 01/13] asciidoc: drop distutils inherit, not actually required Alexander Kanavin
2017-04-27 14:28 ` [PATCH 02/13] bmap-tools: switch to taking source from git Alexander Kanavin
2017-04-27 14:28 ` [PATCH 03/13] mesa: remove the git recipe Alexander Kanavin
2017-04-27 14:28 ` [PATCH 04/13] mesa: drop pythonnative inherit Alexander Kanavin
2017-04-27 14:28 ` [PATCH 05/13] mklibs-native: remove native python dependency Alexander Kanavin
2017-04-27 14:28 ` [PATCH 06/13] webkitgtk: " Alexander Kanavin
2017-04-27 14:28 ` [PATCH 07/13] packagegroup-self-hosted: remove python-git dependency Alexander Kanavin
2017-04-27 14:28 ` [PATCH 08/13] python-pycurl: remove the recipe Alexander Kanavin
2017-04-27 14:28 ` [PATCH 09/13] python: remove unused 2.x versions of several packages Alexander Kanavin
2017-04-27 14:28 ` [PATCH 10/13] opkg-utils: move to Python 3 Alexander Kanavin
2017-04-27 14:28 ` [PATCH 11/13] mc: do not package Python-based extfs helpers Alexander Kanavin
2017-04-27 14:28 ` [PATCH 12/13] parted: move test helper scripts to Python 3 Alexander Kanavin
2017-04-27 14:28 ` [PATCH 13/13] kconfig-frontends: update to 4.10.0.1 Alexander Kanavin
2017-04-27 15:42 ` [PATCH 00/13] Reduce (but not completely eliminate yet) Python 2.x dependencies Burton, Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1493302527.git.alexander.kanavin@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox