Skip to contentSkip to conversation

utils/scanpypi: don't hardcode python2

PATCH New Peter Korsgaard 3 participants 3 messages Mar 30, 2018 – Apr 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/scanpypi: don't hardcode python2

Commit 3a0c20c5309b (scanpypi: add support for Python3) adapted the script to work with python 3.x, but the shebang still said python2 making it unlikely to work on systems without python 2.x.

Change it to just 'python' instead.

---
 utils/scanpypi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/scanpypi +1 -1
index 505ba0a246..df8939b82e 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 """
 
 Utility for building Buildroot packages for existing PyPI packages
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 utils/scanpypi: don't hardcode python2

Quoted 7 lines · Peter Korsgaard

Commit 3a0c20c5309b (scanpypi: add support for Python3) adapted the script to work with python 3.x, but the shebang still said python2 making it unlikely to work on systems without python 2.x.

Change it to just 'python' instead.

Quoted 17 lines
---
 utils/scanpypi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/scanpypi +1 -2
index 505ba0a246..df8939b82e 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 """
 
 Utility for building Buildroot packages for existing PyPI packages
--

2.11.0

#2 lore raw

PATCH 1/1 utils/scanpypi: don't hardcode python2

In reply to Peter Korsgaard

Hello,

Quoted 10 lines · Peter Korsgaard

Commit 3a0c20c5309b (scanpypi: add support for Python3) adapted the script to work with python 3.x, but the shebang still said python2 making it unlikely to work on systems without python 2.x.

Change it to just 'python' instead.

---
 utils/scanpypi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com