#137 [patch] support systems that default to Python 3.x
Opened 9 years ago by pavlix. Modified 9 years ago

Some distributions use Python 3.x by default, when using python as the name of the interpretter. The attached patch modifies the package so that it works on such distributions.


Hi, can we expect any improvement?

From ​http://legacy.python.org/dev/peps/pep-0394/

In order to tolerate differences across platforms, all new code that needs to invoke the Python interpreter should not specify python, but rather should specify either python2 or python3 (or the more specific python2.x and python3.x versions; see the Migration Notes). This distinction should be made in shebangs, when invoking from a shell script, when invoking via the system() call, or when invoking in any other context.

One exception to this is scripts that are deliberately written to be source compatible with both Python 2.x and 3.x. Such scripts may continue to use python on their shebang line without affecting their portability.

Login to comment on this ticket.

Metadata