##// END OF EJS Templates
check for Python 3.2...
MinRK -
Show More
@@ -28,8 +28,10 b' import sys'
28 28 #-----------------------------------------------------------------------------
29 29
30 30 # Don't forget to also update setup.py when this changes!
31 if sys.version_info[:2] < (2,7):
32 raise ImportError('IPython requires Python Version 2.7 or above.')
31 v = sys.version_info
32 if v[:2] < (2,7) or (v[0] >= 3 and v[:2] < (3,3)):
33 raise ImportError('IPython requires Python version 2.7 or 3.3 or above.')
34 del v
33 35
34 36 # Make it easy to import extensions - they are always directly on pythonpath.
35 37 # Therefore, non-IPython modules can be added to extensions directory.
@@ -26,8 +26,9 b' import sys'
26 26
27 27 # This check is also made in IPython/__init__, don't forget to update both when
28 28 # changing Python version requirements.
29 if sys.version_info[:2] < (2,7):
30 error = "ERROR: IPython requires Python Version 2.7 or above."
29 v = sys.version_info
30 if v[:2] < (2,7) or (v[0] >= 3 and v[:2] < (3,3)):
31 error = "ERROR: IPython requires Python version 2.7 or 3.3 or above."
31 32 print(error, file=sys.stderr)
32 33 sys.exit(1)
33 34
General Comments 0
You need to be logged in to leave comments. Login now