ipython/ipython — pull request #1129 by takluyver (2011-12-08 22:46:30+00:00)
Title: Unified setup.py

This unifies the setup.py file for Python 2 and Python 3. A bit of reworking was needed so the setup code can run in Python 2 or 3. This may well need some cleanup - I just messed around with it until it worked.

Note that GH is doing a poor job of showing the changes, because the file that was setup2.py has replaced setup.py. Here is a clearer picture of the code changes, generated with `git diff HEAD~2 HEAD~1`: https://gist.github.com/1449027 (that excludes moving the files in the subsequent commit).

This should close #1119.

One downside: trying to install in older versions of Python will now fail with a SyntaxError, rather than a descriptive message, because we're using `from __future__ import print_function`. I can't see any neat way round that, although there's probably a hackish way if we think the message is important enough.