[OE-core] [PATCH] ninja: use Python 3

Khem Raj raj.khem at gmail.com
Fri Jul 12 00:53:49 UTC 2019


On Thu, Jul 11, 2019 at 4:55 PM Ross Burton <ross.burton at intel.com> wrote:
>
> As part of the mission to remove the use of Python 2, explicitly bootstrap Ninja
> with Python 3.
>
> Signed-off-by: Ross Burton <ross.burton at intel.com>
> ---
>  meta/recipes-devtools/ninja/ninja_1.9.0.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/ninja/ninja_1.9.0.bb b/meta/recipes-devtools/ninja/ninja_1.9.0.bb
> index 1b063289614..f1236e8ac82 100644
> --- a/meta/recipes-devtools/ninja/ninja_1.9.0.bb
> +++ b/meta/recipes-devtools/ninja/ninja_1.9.0.bb
> @@ -17,11 +17,11 @@ S = "${WORKDIR}/git"
>  do_configure[noexec] = "1"
>
>  do_compile_class-native() {
> -       ./configure.py --bootstrap
> +       python3 ./configure.py --bootstrap
>  }
>
>  do_compile() {
> -       ./configure.py
> +       python3 ./configure.py

Maybe we should encode it in interpreter section inside configure.py
itself and upstream it.

>         ninja
>  }
>
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list