[Buildroot] [PATCH v2 1/4] support: utils: use python3 explicitly

Petr Vorel petr.vorel at gmail.com
Tue Sep 21 20:57:52 UTC 2021


Hi Romain,

> Hello Petr,

> Le 15/09/2021 à 21:48, Petr Vorel a écrit :
> > Python 2 is EOL sice 2020 [1], it's still available on distros, but may not
> > be installed by default (as being replaced by python3).

> > Thus remove compatibility imports:
> > from __future__ import print_function
> > from __future__ import absolute_import

> > Tested with python3 -m py_compile.

> > [1] https://www.python.org/doc/sunset-python-2/

> > Signed-off-by: Petr Vorel <petr.vorel at gmail.com>
> > ---

> > diff --git a/utils/get-developers b/utils/get-developers
> > index 9182b2d85f..22accaf181 100755
> > --- a/utils/get-developers
> > +++ b/utils/get-developers
> > @@ -1,4 +1,4 @@
> > -#!/usr/bin/env python
> > +#!/usr/bin/env python3

> >  import argparse
> >  import getdeveloperlib

> There is one remaining __future__ to remove:

> utils/getdeveloperlib.py:from __future__ import print_function
Thanks!

> It was removed by your patch 3/4 but it was rejected:
> http://patchwork.ozlabs.org/project/buildroot/patch/20210915194839.22122-4-petr.vorel@gmail.com/

I set it as rejected.

> Maybe it can be removed directly from this patch.
Nah, I can send v3 with this fixed.

> Best regards,
> Romain


More information about the buildroot mailing list