sympy/sympy — pull request #1483 by vperic (2012-08-14 09:05:25+00:00)
Title: setup.py: Use parenthesis around print statements

In Python 3, the print statement was changed to a function. As such,
running setup.py under Python 3 produces SyntaxErrors. However, for such
simple cases, it is possible to just wrap the entire string with
parenthesis and this will print as expected in all Python versions.
Making this change allows us to print the correct error message (that
use2to3 should be run) if the user tries to use setup.py under Python 3.

This addresses issue 3053.

---

Here's how it looks now:

```
vperic@vperic-laptop:~/devel/sympy> python2.4 setup.py audit
Traceback (most recent call last):
File "setup.py", line 36, in ?
import sympy
File "/home/vperic/devel/sympy/sympy/__init__.py", line 31, in ?
raise ImportError("Python Version 2.5 or above is required for SymPy.")
ImportError: Python Version 2.5 or above is required for SymPy.
vperic@vperic-laptop:~/devel/sympy> python3.2 setup.py audit
Traceback (most recent call last):
File "setup.py", line 36, in
import sympy
File "/home/vperic/devel/sympy/sympy/__init__.py", line 34, in
raise ImportError("This is the Python 2 version of SymPy. To use SymPy "
ImportError: This is the Python 2 version of SymPy. To use SymPy with Python 3, please obtain a Python 3 version from http://sympy.org, or use the bin/use2to3 script if you are using the git version
```