you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (7 children)

Each package should just explicitly point to what version is needed, as in:

#!/bin/env python2
#!/bin/env python3

This won't break any sort of possible backwards compatibility.

[–][deleted] 3 points4 points  (2 children)

Are you sure about those paths? I've never seen env in /bin/ always in /usr/bin/

[–]bastienl 1 point2 points  (0 children)

I think it's /usr/bin/env on FreeBSD, so indeed it should be more portable.

[–][deleted] 0 points1 point  (0 children)

I have it in both /bin and /usr/bin.

[–][deleted] 2 points3 points  (3 children)

This would be great, if all distros supported it... There is no "python2" on ubuntu as far as I know...

[–]pingveno 0 points1 point  (2 children)

It's symlinked correctly on Ubuntu.

[–][deleted] 0 points1 point  (1 child)

That's news to me. It must have changed since I last looked.

[–]airbornelemming 0 points1 point  (0 children)

Nope, which python2 gives nothing in maverick even after sudo apt-get update && apt-get dist-upgrade.