On 31 July 2017 at 05:19, Björn Persson <Bjorn@rombobjörn.se> wrote: > Mathieu Bridon <bochecha@xxxxxxxxxxx> 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. Yeah, I was just straight up wrong on that front - while we only added this as far back as 2.7 upstream, it looks like Red Hat took care of backporting the addition to both EL5 & EL6. So mea culpa for failing to double check how portable explicit python2 references actually were - that part of my post can be dismissed as being based on a faulty assumption. Cheers, Nick. -- Nick Coghlan | ncoghlan@xxxxxxxxx | Brisbane, Australia _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx