##// END OF EJS Templates
Fix invalid version check in setup.py.
Fernando Perez -
Show More
@@ -24,6 +24,7 b' import sys'
24 # Setup everything
24 # Setup everything
25 #-----------------------------------------------------------------------------
25 #-----------------------------------------------------------------------------
26
26
27 # Don't forget to also update setup.py when this changes!
27 if sys.version[0:3] < '2.6':
28 if sys.version[0:3] < '2.6':
28 raise ImportError('Python Version 2.6 or above is required for IPython.')
29 raise ImportError('Python Version 2.6 or above is required for IPython.')
29
30
@@ -21,14 +21,14 b' import sys'
21
21
22 # This check is also made in IPython/__init__, don't forget to update both when
22 # This check is also made in IPython/__init__, don't forget to update both when
23 # changing Python version requirements.
23 # changing Python version requirements.
24 if sys.version[0:3] < '2.5':
24 if sys.version[0:3] < '2.6':
25 error = """\
25 error = """\
26 ERROR: 'IPython requires Python Version 2.5 or above.'
26 ERROR: 'IPython requires Python Version 2.6 or above.'
27 Exiting."""
27 Exiting."""
28 print >> sys.stderr, error
28 print >> sys.stderr, error
29 sys.exit(1)
29 sys.exit(1)
30
30
31 # At least we're on Python 2.5 or newer, move on.
31 # At least we're on the python version we need, move on.
32
32
33 #-------------------------------------------------------------------------------
33 #-------------------------------------------------------------------------------
34 # Imports
34 # Imports
General Comments 0
You need to be logged in to leave comments. Login now