All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] scripts: switch explicitly to Python 3
@ 2020-12-09 11:50 Andy Shevchenko
  2020-12-09 12:00 ` Andy Shevchenko
  2020-12-09 20:11 ` Pavel Machek
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2020-12-09 11:50 UTC (permalink / raw)
  To: Masahiro Yamada, linux-kernel; +Cc: Andy Shevchenko

Some distributions are about to switch to Python 3 support only.
This means that /usr/bin/python, which is Python 2, is not available
anymore. Hence, switch scripts to use Python 3 explicitly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 scripts/bloat-o-meter | 2 +-
 scripts/diffconfig    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
index 652e9542043f..dcd8d8750b8b 100755
--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright 2004 Matt Mackall <mpm@selenic.com>
 #
diff --git a/scripts/diffconfig b/scripts/diffconfig
index 627eba5849b5..d5da5fa05d1d 100755
--- a/scripts/diffconfig
+++ b/scripts/diffconfig
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # SPDX-License-Identifier: GPL-2.0
 #
 # diffconfig - a tool to compare .config files.
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v1] scripts: switch explicitly to Python 3
  2020-12-09 11:50 [PATCH v1] scripts: switch explicitly to Python 3 Andy Shevchenko
@ 2020-12-09 12:00 ` Andy Shevchenko
  2020-12-09 20:11 ` Pavel Machek
  1 sibling, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2020-12-09 12:00 UTC (permalink / raw)
  To: Masahiro Yamada, linux-kernel

On Wed, Dec 09, 2020 at 01:50:17PM +0200, Andy Shevchenko wrote:
> Some distributions are about to switch to Python 3 support only.
> This means that /usr/bin/python, which is Python 2, is not available
> anymore. Hence, switch scripts to use Python 3 explicitly.

Note, I converted only ones I have tested.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v1] scripts: switch explicitly to Python 3
  2020-12-09 11:50 [PATCH v1] scripts: switch explicitly to Python 3 Andy Shevchenko
  2020-12-09 12:00 ` Andy Shevchenko
@ 2020-12-09 20:11 ` Pavel Machek
  2020-12-09 20:45   ` Andy Shevchenko
  1 sibling, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2020-12-09 20:11 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Masahiro Yamada, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

Hi!

> Some distributions are about to switch to Python 3 support only.
> This means that /usr/bin/python, which is Python 2, is not available
> anymore. Hence, switch scripts to use Python 3 explicitly.

Should python be mentioned in Documentation/process/changes.rst ?

Best regards,
								Pavel
								

-- 
http://www.livejournal.com/~pavelmachek

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v1] scripts: switch explicitly to Python 3
  2020-12-09 20:11 ` Pavel Machek
@ 2020-12-09 20:45   ` Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2020-12-09 20:45 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Masahiro Yamada, linux-kernel

On Wed, Dec 09, 2020 at 09:11:15PM +0100, Pavel Machek wrote:

> > Some distributions are about to switch to Python 3 support only.
> > This means that /usr/bin/python, which is Python 2, is not available
> > anymore. Hence, switch scripts to use Python 3 explicitly.
> 
> Should python be mentioned in Documentation/process/changes.rst ?

Dunno. There is even no Scripts section.

Anyway it's not part of this patch since we have half of the Python scripts
explicitly mentioned Python 3.


-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-09 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 11:50 [PATCH v1] scripts: switch explicitly to Python 3 Andy Shevchenko
2020-12-09 12:00 ` Andy Shevchenko
2020-12-09 20:11 ` Pavel Machek
2020-12-09 20:45   ` Andy Shevchenko

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.