All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <petr.vorel@gmail.com>
To: David Laight <David.Laight@aculab.com>
Cc: "buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] [RFC PATCH 1/1] support: utils: Use python3
Date: Wed, 15 Sep 2021 21:10:52 +0200	[thread overview]
Message-ID: <YUJFPP54zlqOJWC/@pevik> (raw)
In-Reply-To: <672cac3266544283a755e58c6b021314@AcuMS.aculab.com>

> From: Petr Vorel
> > Sent: 14 September 2021 18:43

> > 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).

> ...
> > -#!/usr/bin/env python
> > +#!/usr/bin/env python3

> Doesn't python3 just get installed as python?
No, that's for python2. At least on Debian and openSUSE. On current Debian
testing it's only python3. Sure, I can install python2 package now, but sooner
or later python2 will be removed. And I'm not sure if all distros just change
python symlink to python3 binary, when they remove python2 package.

> So you don't need to change these lines.

> ...
> > diff --git a/utils/check-package b/utils/check-package
> > index dd18d19c25..6540af6b2d 100755
> > --- a/utils/check-package
> > +++ b/utils/check-package
> > @@ -1,4 +1,4 @@
> > -#!/usr/bin/env python
> > +#!/usr/bin/env python3
> >  # See utils/checkpackagelib/readme.txt before editing this file.

> >  from __future__ import print_function

> For p3 you can also remove that import.
Ah, correct, thanks! I'll add it in v2:

Kind regards,
Petr

> FWIW that didn't help me get some python scripts to run under
> p2 and p3 because one of the p2 installations was too old to
> support it.

> 	David
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2021-09-15 19:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-14 17:43 [Buildroot] [RFC PATCH 1/1] support: utils: Use python3 Petr Vorel
2021-09-15  8:13 ` David Laight
2021-09-15  8:49   ` Edgar Bonet
2021-09-15 19:10   ` Petr Vorel [this message]

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=YUJFPP54zlqOJWC/@pevik \
    --to=petr.vorel@gmail.com \
    --cc=David.Laight@aculab.com \
    --cc=buildroot@buildroot.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.