Skip to contentSkip to conversation

use python3 explicitly

PATCH Superseded Petr Vorel 3 participants 9 messages Sep 15, 2021 – Sep 21, 2021

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

v2 cover use python3 explicitly

Hi,

changes v1->v2:
* 3 more commits
* remove also python2 compatibility imports

Kind regards,
Petr

Petr Vorel (4):
support: utils: use python3
utils/scanpypi: remove python2 compatibility imports utils/getdeveloperlib.py: use python3 explicitly testing/tests/package: use python3 explicitly

 support/scripts/cve.py                                        | 2 +-
 support/scripts/graph-build-time                              | 2 +-
 support/scripts/graph-depends                                 | 2 +-
 support/scripts/pycompile.py                                  | 4 +---
 support/scripts/size-stats                                    | 2 +-
 support/testing/tests/package/sample_gst1_python.py           | 2 +-
 support/testing/tests/package/sample_python_gobject.py        | 2 +-
 support/testing/tests/package/test_crudini.py                 | 2 ++
 support/testing/tests/package/test_gst1_python.py             | 2 ++
 support/testing/tests/package/test_ipython.py                 | 2 ++
 support/testing/tests/package/test_libftdi1.py                | 2 ++
 support/testing/tests/package/test_python.py                  | 2 ++
 support/testing/tests/package/test_python_argh.py             | 2 ++
 support/testing/tests/package/test_python_attrs.py            | 2 ++
 support/testing/tests/package/test_python_augeas.py           | 2 ++
 support/testing/tests/package/test_python_autobahn.py         | 2 ++
 support/testing/tests/package/test_python_automat.py          | 2 ++
 support/testing/tests/package/test_python_avro.py             | 2 ++
 support/testing/tests/package/test_python_bitstring.py        | 2 ++
 support/testing/tests/package/test_python_can.py              | 2 ++
 support/testing/tests/package/test_python_cbor.py             | 2 ++
 support/testing/tests/package/test_python_click.py            | 2 ++
 support/testing/tests/package/test_python_colorzero.py        | 2 ++
 support/testing/tests/package/test_python_constantly.py       | 2 ++
 support/testing/tests/package/test_python_crossbar.py         | 2 ++
 support/testing/tests/package/test_python_cryptography.py     | 2 ++
 support/testing/tests/package/test_python_dbus_next.py        | 2 ++
 support/testing/tests/package/test_python_django.py           | 2 ++
 support/testing/tests/package/test_python_gitdb2.py           | 2 ++
 support/testing/tests/package/test_python_gobject.py          | 2 ++
 support/testing/tests/package/test_python_gpiozero.py         | 2 ++
 support/testing/tests/package/test_python_incremental.py      | 2 ++
 support/testing/tests/package/test_python_passlib.py          | 2 ++
 support/testing/tests/package/test_python_pexpect.py          | 2 ++
 support/testing/tests/package/test_python_pynacl.py           | 2 ++
 support/testing/tests/package/test_python_pytest.py           | 2 ++
 support/testing/tests/package/test_python_pytest_asyncio.py   | 2 ++
 support/testing/tests/package/test_python_pyyaml.py           | 2 ++
 support/testing/tests/package/test_python_rpi_gpio.py         | 2 ++
 support/testing/tests/package/test_python_rsa.py              | 2 ++
 support/testing/tests/package/test_python_service_identity.py | 2 ++
 support/testing/tests/package/test_python_smmap2.py           | 2 ++
 support/testing/tests/package/test_python_subprocess32.py     | 2 ++
 support/testing/tests/package/test_python_treq.py             | 2 ++
 support/testing/tests/package/test_python_twisted.py          | 2 ++
 support/testing/tests/package/test_python_txaio.py            | 2 ++
 support/testing/tests/package/test_python_txtorcon.py         | 2 ++
 support/testing/tests/package/test_python_ubjson.py           | 2 ++
 utils/check-package                                           | 3 +--
 utils/genrandconfig                                           | 4 +---
 utils/get-developers                                          | 2 +-
 utils/getdeveloperlib.py                                      | 3 ++-
 utils/scanpypi                                                | 2 --
 utils/size-stats-compare                                      | 2 +-
 54 files changed, 95 insertions(+), 19 deletions(-)
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
author
#1 lore raw

PATCH v2 1/4 support: utils: use python3 explicitly

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/

---
changes v1->v2:
* remove also python2 compatibility imports

 support/scripts/cve.py                                 | 2 +-
 support/scripts/graph-build-time                       | 2 +-
 support/scripts/graph-depends                          | 2 +-
 support/scripts/pycompile.py                           | 4 +---
 support/scripts/size-stats                             | 2 +-
 support/testing/tests/package/sample_gst1_python.py    | 2 +-
 support/testing/tests/package/sample_python_gobject.py | 2 +-
 utils/check-package                                    | 3 +--
 utils/genrandconfig                                    | 4 +---
 utils/get-developers                                   | 2 +-
 utils/size-stats-compare                               | 2 +-
 11 files changed, 11 insertions(+), 16 deletions(-)
support/scripts/cve.py +1 -1
index 13c29fabe0..7cd6fce4d8 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (C) 2009 by Thomas Petazzoni <[email protected]>
 # Copyright (C) 2020 by Gregory CLEMENT <[email protected]>
support/scripts/graph-build-time +1 -1
index ba3cdad85b..742c9a7a50 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (C) 2011 by Thomas Petazzoni <[email protected]>
 # Copyright (C) 2013 by Yann E. MORIN <[email protected]>
support/scripts/graph-depends +1 -1
index d42bebce9d..a66fb28f41 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Usage (the graphviz package must be installed in your distribution)
 #  ./support/scripts/graph-depends [-p package-name] > test.dot
support/scripts/pycompile.py +1 -3
index b8cd3cee6c..8774144a90 100644
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Byte compile all .py files from provided directories. This script is an
@@ -6,8 +6,6 @@ alternative implementation of compileall.compile_dir written with
 cross-compilation in mind.
 """
 
-from __future__ import print_function
-
 import argparse
 import os
 import py_compile
support/scripts/size-stats +1 -1
index dea3a6007c..bf3d12a9b7 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (C) 2014 by Thomas Petazzoni <[email protected]>
 
support/testing/tests/package/sample_gst1_python.py +1 -1
index fab7e74f40..2d7e0e1ed9 100644
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """A simple test that uses gst1-python to run a fake videotestsrc for 100
 frames
 """
support/testing/tests/package/sample_python_gobject.py +1 -1
index 50564aa79f..4490a73613 100644
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """A simple test that uses python-gobject to find the path of sh."""
 from gi.repository import GLib
 
utils/check-package +1 -2
index dd18d19c25..a959fef079 100755
@@ -1,7 +1,6 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # See utils/checkpackagelib/readme.txt before editing this file.
 
-from __future__ import print_function
 import argparse
 import inspect
 import os
utils/genrandconfig +1 -3
index 622cfd4891..a1431bf1a8 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (C) 2014 by Thomas Petazzoni <[email protected]>
 #
@@ -18,8 +18,6 @@
 
 # This script generates a random configuration for testing Buildroot.
 
-from __future__ import print_function
-
 import contextlib
 import csv
 import os
utils/get-developers +1 -1
index 9182b2d85f..22accaf181 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import argparse
 import getdeveloperlib
utils/size-stats-compare +1 -1
index a3d7f250c6..422972e488 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (C) 2016 Thomas De Schampheleire <[email protected]>
 
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

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

Hello Petr,

Le 15/09/2021 à 21:48, Petr Vorel a écrit :

Quoted 19 lines

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/

---

utils/get-developers +0 -0
index 9182b2d85f..22accaf181 100755

utils/get-developers line 4

Quoted 5 lines
utils/get-developers +1 -1
@@ -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

It was removed by your patch 3/4 but it was rejected:
http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Maybe it can be removed directly from this patch.

Best regards,
Romain

utils/size-stats-compare line 4

Quoted 11 lines
utils/size-stats-compare +1 -1
index a3d7f250c6..422972e488 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (C) 2016 Thomas De Schampheleire <[email protected]>
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

author
#3 lore raw

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

Hi Romain,

Quoted 25 lines

Hello Petr,

Le 15/09/2021 à 21:48, Petr Vorel a écrit :

Quoted 21 lines

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/

---

utils/get-developers +1 -1
index 9182b2d85f..22accaf181 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
Quoted 6 lines

utils/get-developers line 4

Quoted 2 lines
utils/get-developers +0 -0
 import argparse
 import getdeveloperlib

There is one remaining __future__ to remove:

utils/getdeveloperlib.py:from __future__ import print_function

Thanks!

Quoted 2 lines

It was removed by your patch 3/4 but it was rejected:
http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

I set it as rejected.

Quoted 1 line

Maybe it can be removed directly from this patch.

Nah, I can send v3 with this fixed.

Quoted 2 lines

Best regards,
Romain

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

author
#4 lore raw

PATCH v2 2/4 utils/scanpypi: remove python2 compatibility imports

In reply to Petr Vorel

ee8b680816 ("utils/scanpypi: use python3 explicitly") started to use python3, thus compatibility can be removed:

from __future__ import print_function
from __future__ import absolute_import

Tested with python3 -m py_compile.

---
New in v2

 utils/scanpypi | 2 --
 1 file changed, 2 deletions(-)
utils/scanpypi +0 -2
index 9dede4e119..1f3326cf4d 100755
@@ -6,8 +6,6 @@ Utility for building Buildroot packages for existing PyPI packages
 Any package built by scanpypi should be manually checked for
 errors.
 """
-from __future__ import print_function
-from __future__ import absolute_import
 import argparse
 import json
 import sys
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
author
#5 lore raw

PATCH v2 3/4 utils/getdeveloperlib.py: use python3 explicitly

In reply to Petr Vorel

+ remove python2 compatibility imports

library is used by support/scripts/pkg-stats and utils/get-developers which both use python3. Although library does not require shebang, it's better to state python3 use.

Tested with python3 -m py_compile.

---
New in v2

 utils/getdeveloperlib.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
utils/getdeveloperlib.py +2 -1
index ce822320f8..74a3a420ee 100644
@@ -1,4 +1,5 @@
-from __future__ import print_function
+#!/usr/bin/env python3
+
 from io import open
 import os
 import re
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH v2 3/4] utils/getdeveloperlib.py: use python3 explicitly

Quoted 5 lines · Petr Vorel

+ remove python2 compatibility imports

library is used by support/scripts/pkg-stats and utils/get-developers which both use python3. Although library does not require shebang, it's better to state python3 use.

Do you have some supporting evidence of this claim "it's better to add a shebang"?

Looking at a few random projects with python files, I see none that do it.

And it seems like a lot of noise to add this for no obvious gain. If it's about
documenting the minimum python version, it's not even correct: some of these scripts will require python3.4 or python3.5 and that's not documented...

Regards,
Arnout

Quoted 16 lines

Tested with python3 -m py_compile.

---
New in v2

 utils/getdeveloperlib.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
utils/getdeveloperlib.py +0 -0
index ce822320f8..74a3a420ee 100644

utils/getdeveloperlib.py line 5

Quoted 6 lines
utils/getdeveloperlib.py +2 -1
@@ -1,4 +1,5 @@
-from __future__ import print_function
+#!/usr/bin/env python3
+
 from io import open
 import os
 import re

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

author
#7 lore raw

Re: [Buildroot] [PATCH v2 3/4] utils/getdeveloperlib.py: use python3 explicitly

Hi Arnout,

Quoted 8 lines · Petr Vorel
Quoted 5 lines

+ remove python2 compatibility imports

library is used by support/scripts/pkg-stats and utils/get-developers which both use python3. Although library does not require shebang, it's better to state python3 use.

Do you have some supporting evidence of this claim "it's better to add a shebang"?

No.

Quoted 1 line

Looking at a few random projects with python files, I see none that do it.

I'm sorry, I was obviously wrong.

Quoted 3 lines

And it seems like a lot of noise to add this for no obvious gain. If it's about
documenting the minimum python version, it's not even correct: some of these scripts will require python3.4 or python3.5 and that's not documented...

Agree => setting this commit and the 4th commit in patchwork as Rejected.

Thanks a lot for your input.

Kind regards,
Petr

Quoted 2 lines

Regards,
Arnout

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

author
#8 lore raw

PATCH v2 4/4 testing/tests/package: use python3 explicitly

In reply to Petr Vorel

in all testing libraries. Although library does not require shebang, it's better to state python3 use.

NOTE: keep code "from __future__ import print_function;" in TestPythonBase() as code itself test both python versions.

Tested with python3 -m py_compile.

---
New in v2

 support/testing/tests/package/test_crudini.py                 | 2 ++
 support/testing/tests/package/test_gst1_python.py             | 2 ++
 support/testing/tests/package/test_ipython.py                 | 2 ++
 support/testing/tests/package/test_libftdi1.py                | 2 ++
 support/testing/tests/package/test_python.py                  | 2 ++
 support/testing/tests/package/test_python_argh.py             | 2 ++
 support/testing/tests/package/test_python_attrs.py            | 2 ++
 support/testing/tests/package/test_python_augeas.py           | 2 ++
 support/testing/tests/package/test_python_autobahn.py         | 2 ++
 support/testing/tests/package/test_python_automat.py          | 2 ++
 support/testing/tests/package/test_python_avro.py             | 2 ++
 support/testing/tests/package/test_python_bitstring.py        | 2 ++
 support/testing/tests/package/test_python_can.py              | 2 ++
 support/testing/tests/package/test_python_cbor.py             | 2 ++
 support/testing/tests/package/test_python_click.py            | 2 ++
 support/testing/tests/package/test_python_colorzero.py        | 2 ++
 support/testing/tests/package/test_python_constantly.py       | 2 ++
 support/testing/tests/package/test_python_crossbar.py         | 2 ++
 support/testing/tests/package/test_python_cryptography.py     | 2 ++
 support/testing/tests/package/test_python_dbus_next.py        | 2 ++
 support/testing/tests/package/test_python_django.py           | 2 ++
 support/testing/tests/package/test_python_gitdb2.py           | 2 ++
 support/testing/tests/package/test_python_gobject.py          | 2 ++
 support/testing/tests/package/test_python_gpiozero.py         | 2 ++
 support/testing/tests/package/test_python_incremental.py      | 2 ++
 support/testing/tests/package/test_python_passlib.py          | 2 ++
 support/testing/tests/package/test_python_pexpect.py          | 2 ++
 support/testing/tests/package/test_python_pynacl.py           | 2 ++
 support/testing/tests/package/test_python_pytest.py           | 2 ++
 support/testing/tests/package/test_python_pytest_asyncio.py   | 2 ++
 support/testing/tests/package/test_python_pyyaml.py           | 2 ++
 support/testing/tests/package/test_python_rpi_gpio.py         | 2 ++
 support/testing/tests/package/test_python_rsa.py              | 2 ++
 support/testing/tests/package/test_python_service_identity.py | 2 ++
 support/testing/tests/package/test_python_smmap2.py           | 2 ++
 support/testing/tests/package/test_python_subprocess32.py     | 2 ++
 support/testing/tests/package/test_python_treq.py             | 2 ++
 support/testing/tests/package/test_python_twisted.py          | 2 ++
 support/testing/tests/package/test_python_txaio.py            | 2 ++
 support/testing/tests/package/test_python_txtorcon.py         | 2 ++
 support/testing/tests/package/test_python_ubjson.py           | 2 ++
 41 files changed, 82 insertions(+)
support/testing/tests/package/test_crudini.py +2 -0
index e320d3207e..c86cf9de27 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import os
 from tests.package.test_python import TestPythonPackageBase
 
support/testing/tests/package/test_gst1_python.py +2 -0
index caae3e6b2d..43b150b094 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import os
 from tests.package.test_python import TestPythonPackageBase
 
support/testing/tests/package/test_ipython.py +2 -0
index 50b00da7c2..0bde89b729 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonBase
 #
 # The following pythong tests are not being used here:
support/testing/tests/package/test_libftdi1.py +2 -0
index 78c928484c..04718f7b7d 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python.py +2 -0
index 60da8765c4..98f6c68c50 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import os
 
 import infra.basetest
support/testing/tests/package/test_python_argh.py +2 -0
index de4b4cbe74..66b5bc15b1 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_attrs.py +2 -0
index 9f597034ae..917fa99771 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_augeas.py +2 -0
index c1424668d6..59c58d413d 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_autobahn.py +2 -0
index a237ce465d..d97b743a3e 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_automat.py +2 -0
index 00a7ed6526..b71e44d3eb 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_avro.py +2 -0
index 6eee2760da..64b3b00aa3 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_bitstring.py +2 -0
index 63b3fdb69c..7a57f993e8 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_can.py +2 -0
index d509d05dbb..07131fda01 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_cbor.py +2 -0
index 9da3503763..2c0a5cc2e7 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_click.py +2 -0
index db57d3aa9f..b64594354a 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_colorzero.py +2 -0
index d67f77bdd4..b62c4b3cbb 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_constantly.py +2 -0
index 5be01c4f8c..4a12d11c5c 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_crossbar.py +2 -0
index d7843ddd8b..82076a99e5 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_cryptography.py +2 -0
index 62f0ca0def..1fb4fc9f98 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_dbus_next.py +2 -0
index 3c597ad198..1a99f18039 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import textwrap
 
 
support/testing/tests/package/test_python_django.py +2 -0
index 0b7d35bb6a..01b6c30c83 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_gitdb2.py +2 -0
index fc55f20821..6b4d96ad36 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_gobject.py +2 -0
index cd8a43252b..79cdc717c6 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import os
 from tests.package.test_python import TestPythonPackageBase
 
support/testing/tests/package/test_python_gpiozero.py +2 -0
index 4fe155e6ce..4088def82b 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_incremental.py +2 -0
index 49800d8937..51ada9dea1 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_passlib.py +2 -0
index 7c85882bf8..cb7a913685 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_pexpect.py +2 -0
index ba31cdbdbe..c506d95eea 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_pynacl.py +2 -0
index f4dd54940a..e78ccab291 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_pytest.py +2 -0
index 1a631adfd3..b214b63793 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import os
 
 from tests.package.test_python import TestPythonPackageBase
support/testing/tests/package/test_python_pytest_asyncio.py +2 -0
index e09abf2abb..06373c3804 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 import os
 
 from tests.package.test_python import TestPythonPackageBase
support/testing/tests/package/test_python_pyyaml.py +2 -0
index cd45a57b86..e83b3f49e6 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_rpi_gpio.py +2 -0
index c938ea39bb..83da2d893c 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_rsa.py +2 -0
index e63d63e1de..58c9a4716a 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_service_identity.py +2 -0
index 09cfbe0a26..e501941892 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_smmap2.py +2 -0
index 07c0e6621e..61593886f2 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_subprocess32.py +2 -0
index d2878046d1..cf90f0be5d 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_treq.py +2 -0
index d7a23829ea..43bb9aaa71 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_twisted.py +2 -0
index e87312db13..b33be1616a 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_txaio.py +2 -0
index f1bb2c79a6..d3e0db0d33 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_txtorcon.py +2 -0
index 8e74190ee1..a43fd187e9 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
support/testing/tests/package/test_python_ubjson.py +2 -0
index 85c707e292..5b86352774 100644
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 from tests.package.test_python import TestPythonPackageBase
 
 
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot