Hi, On a fedora machine, Python 3 is installed by default, but not Python 2. And the only binary available is /usr/bin/python3. This means that despite having all the requirements to run gnulib-tool.py, one would still need to install python to get the right binary.
However, simply changing the shebang line to `/usr/bin/env python3`, this can be eliminated. I don't mind if you would like to keep it as `/usr/bin/env python` to use the python2 interpretor by default either. -- Thanking You, Darshit Shah PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
From 3118c46aac593918441d727040c9b04ec7b2e2cc Mon Sep 17 00:00:00 2001 From: Darshit Shah <dar...@gnu.org> Date: Sat, 31 Mar 2018 11:12:25 +0200 Subject: [PATCH] Use /usr/bin/env to find python interpretor * gnulib-tool.py: Change the shebang line to "#!/usr/bin/env python3". This way, the right python interpretor is always found irrespective of the system. This is required since /usr/bin/python is python2 on some machines and python3 on others --- gnulib-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnulib-tool.py b/gnulib-tool.py index 32295b897..2aa5a2106 100755 --- a/gnulib-tool.py +++ b/gnulib-tool.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Copyright (C) 2002-2018 Free Software Foundation, Inc. # -- 2.16.3
signature.asc
Description: PGP signature