Skip to content

Allow host python3 without a target python

Trent Piepho buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2host-python: Select host python version when no target pythonpackage/Config.in.host package/pkg-python.mk package/python/python.mk +2 more+16 -30 replies
2/2packages: Use PKG_PYTHON_HOST_PYTHON for host pythonpackage/gtest/gtest.mk package/ninja/ninja.mk+3 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/2] Allow host python3 without a target python

It's currently not possible to select the default host python to be python3 without also turning on target python3.

There was a previous patch that attemped to resolve this
https://patchwork.ozlabs.org/patch/854602/ but there were issues.

This should solve those issues, using the approach I described in comment #4.

This series does not yet hunt down every non-python-package that uses host-python to make sure it gets the proper host python version. I just did the packages I needed to test with our project and will wait to see if the approach is accepted before working on the remaining packages.

Trent Piepho (2):
host-python: Select host python version when no target python
packages: Use PKG_PYTHON_HOST_PYTHON for host python

 package/Config.in.host         | 1 +
 package/gtest/gtest.mk         | 5 ++---
 package/ninja/ninja.mk         | 3 +--
 package/pkg-python.mk          | 6 +++++-
 package/python/python.mk       | 2 +-
 package/python3/Config.in.host | 8 ++++++++
 package/python3/python3.mk     | 2 +-
 7 files changed, 19 insertions(+), 8 deletions(-)
 create mode 100644 package/python3/Config.in.host
Signature · 1 line
2.14.3