#!/usr/bin/python
shebang, and expects it to reference Python 2, thus causing breakage.
#!/usr/bin/env python
too
#!/usr/bin/env python2 #!/usr/bin/env python3
Explicitly declaring the required version fixes that problem. In arch, most of the PKGBUILDs will have a line to sed the explicit line into the file in place of the generic python line.
ETA: Arch Linux actually did this before there was an "official" guideline. http://www.wefearchange.org/2012/04/python-3-on-desktop-for-...
Thanks for the pointer.
As a side note, I just yesterday tried out the Django 1.5 development trunk in a python3 virtualenv and it all worked. :)
$ python --version
Python 2.7.3They are encouraging developers to transition their code to Python 3.
Python 3 isn't becoming `/usr/bin/python` - it will be `/usr/bin/python3` and the Python programs that are shipped on the CD will use that. If you thought Python 3 was going to become `/usr/bin/python`, then yes, that would cause backwards compatibility issues.