1. Georg Brandl
  2. pygments-main
Issue #650 resolved

modify shebang check for python2.x to accept `python2`

C Anthony Risinger
created an issue

In Archlinux python is linked to python3 by default; this work required packages unable to run under python3 to be modified to run under a new symlink ... python2. python2 is symlinked against 2.7, or the latest 2.x on the machine.

This, and similar issues regarding py3k, prompted PEP 394:

http://www.python.org/dev/peps/pep-0394/

and after discussion was well received by BDFL/debian maintainers/et al. ... sooo the regex should be updated to make the .X part optional when checking the shebang because syntax highlighting fails for #!/usr/bin/python2 scripts.

Thanks,

C Anthony

Comments (2)

  1. Log in to comment