ipython/ipython — Issue #1470: SyntaxError on setup.py install with Python 3
Author: takluyver
Created: 2012-03-04 14:23:13+00:00
State: open
Labels: prio-medium, py3k, type-bug

Running `python setup.py install` with Python 3 shows a load of syntaxerrors from example .py files in the docs, although it still completes successfully. It seems to try to byte-compile all .py files in the installation directory, even if they're not part of the package, but 2to3 only runs on files that are in the package.

We should either ensure 2to3 runs on the examples during installation, or stop it trying to byte-compile them. At present, I'm not quite sure how to achieve either.