Re: Change the python interpretor to use /usr/bin/env python3

2018-04-02 Thread Bernhard Voelker
On 04/02/2018 07:53 PM, Bruno Haible wrote: > It would make sense for the "rpm runtime dependency detection" to recognize > the /usr/bin/env case as well. In fact, there's already a TODO item in the > source code about this [2]. > > Additionally, this discussion what rpm does or does not do is not

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-02 Thread Bruno Haible
Darshit Shah wrote: > On a fedora machine, Python 3 is installed by default, but not Python 2. And > the only binary available is /usr/bin/python3. It's not only on Fedora. The Python docs themselves ([1], footnote 1) say: "On Unix, the Python 3.x interpreter is by default not installed with th

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-02 Thread Bruno Haible
Bernhard Voelker wrote: > FWIW there are discussions [1] in the opposite direction, i.e., to avoid > /usr/bin/env in the shebang where possible. E.g. in openSUSE there is a > check for RPM builds which leads to: > > pyrenamer.noarch: E: env-script-interpreter (Badness: 9) /usr/bin/pyrenamer >

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-02 Thread Bernhard Voelker
On 04/02/2018 10:02 AM, Darshit Shah wrote: > As you can see here, only Python 3 is installed in the base system. However, > contrary to expectations, python3 does not provide /usr/bin/python. That > binary > is provided by the `python2` package on Fedora. Since python2 is not installed > by defau

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-02 Thread Paul Eggert
Darshit Shah wrote: Since Python 3 is the version that is being specifically targeted, could we please change it to reflect that? That module doesn't target Python 3 in particular, as far as I can tell; it should run on either Python 2 or 3. I dunno, it's pretty weird to have a system that h

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-02 Thread Darshit Shah
Hi, Sorry for the sparse details. I was confused the first time I saw the issue as well, but then I forgot to mention all the details. I was trying to test building GNU Wget2 in a Fedora 27 docker container. So, the I am talking about Fedora 27 on x86-64. But not the full version, just what is av

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-01 Thread Dmitry Selyutin
Hello, thank you for investigating this. I'm joining to questions asked by Paul; moreover, as far as I know specifying python is usually the most correct way to make python work regardless of version (i.e. it is supposed that one day there will be no distinction between python and python3). FWIW,

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-01 Thread Paul Eggert
Could you please clarify this? Which Fedora release and architecture, and what What is the output of 'ls -l /usr/bin/python*' and of 'dnf list --installed 'python*''? That sort of thing. I don't understand why '#!/usr/bin/python' would fail at the same time that '#!/usr/bin/env python' worked. T

Change the python interpretor to use /usr/bin/env python3

2018-03-31 Thread Darshit Shah
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 s