[Buildroot] [git commit branch/2020.02.x] utils/scanpypi: use python3 explicitly

Peter Korsgaard peter at korsgaard.com
Sat Feb 27 17:59:59 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=03e713a0cc47341eb3e9f47bd6c086b1848400be
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

scanpypi is python3 compatible. In addition, it executes the setup.py
of Python modules to extract the relevant information. Since these are
more and more commonly using python3 constructs, using "python" to run
scanpypi causes problems on systems that have python2 installed as
python, when trying to parse setup.py scripts with python3 constructs.

Fixes part of #13516.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit ee8b6808169e1e61b4318b44fbc706ec888c605d)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 utils/scanpypi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/scanpypi b/utils/scanpypi
index dfbf8131cd..c4abc53ff4 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 
 Utility for building Buildroot packages for existing PyPI packages


More information about the buildroot mailing list