Mathieu Bridon <bochecha(a)daitauha.fr> wrote:
On Mon, 2017-07-31 at 00:02 +1000, Nick Coghlan wrote:
> So that's effectively a hard design constraint for me: folks
> targeting EL6 and EL7 *are* going to have to use "/usr/bin/python" in
> their shebang lines (since they can't even assume "/usr/bin/python2"
> will be present,
Wait, what?
I see /usr/bin/python2 in the EL7 spec file:
https://git.centos.org/blob/rpms!python.git/c7/SPECS!python.spec#L2041
I'm pretty sure I had /usr/bin/python2 back in the days when I was
using EL6. (but I have no way to check that now)
I just checked:
$ cat /etc/redhat-release
CentOS release 6.9 (Final)
$ ll /usr/bin/python*
-rwxr-xr-x 2 root root 4864 18 aug 2016 /usr/bin/python
lrwxrwxrwx 1 root root 6 25 aug 2016 /usr/bin/python2 -> python
-rwxr-xr-x 2 root root 4864 18 aug 2016 /usr/bin/python2.6
$ rpm -q --file /usr/bin/python*
python-2.6.6-66.el6_8.x86_64
python-2.6.6-66.el6_8.x86_64
python-2.6.6-66.el6_8.x86_64
Unless this is different in RHEL than in CentOS I don't see
how /usr/bin/python2 could be missing if /usr/bin/python is present.
Björn Persson