On 11/01/11 04:01, Ghee Teo wrote:
On 11/01/11 00:16, Shawn Walker wrote:
On 10/29/11 00:20, Chris Quenelle wrote:
One really good reason to use /usr/bin/python is because you want
your script
to run unmodified on Ubuntu Linux, Oracle Linux, Solaris 10, Solaris
11 and MacOS.
Except, all of those systems (to my knowledge) do the same thing we do.
I am not sure what context Chris originally referred to. Though when I
do on OEL 6
$ file /usr/bin/* | grep python
I got most a /usr/bin/python script text executable
on b175, when I did the same thing,
I got a mix of
executable /usr/bin/python script
executable /usr/bin/python2.6 script
So I think at OEL 6 (at least) is still using #!/usr/bin/python primarily.
Fedora certainly has /usr/bin/python2.7 and /usr/bin/python2 and
/usr/bin/python.
Are you certain that the OEL system hasn't been customised?
My past experience with RedHat systems was that they delivered
/usr/bin/python version specific bits.
Regardless, if you're going to bother packaging a script for Solaris, it
shouldn't use /usr/bin/python except in very limited circumstances.
It's absolutely trivial to replace the shebang lines during packaging,
so I see no reason to use silly decisions made on other platforms as
justification to make the same silly decision when packaging for Solaris.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss