Merge pull request #5500 from minrk/check-3.3

check for Python 3.2
This commit is contained in:
Thomas Kluyver 2014-04-16 14:24:32 -07:00
commit dfe3056b95

View File

@ -26,8 +26,9 @@ import sys
# This check is also made in IPython/__init__, don't forget to update both when
# changing Python version requirements.
if sys.version_info[:2] < (2,7):
error = "ERROR: IPython requires Python Version 2.7 or above."
v = sys.version_info
if v[:2] < (2,7) or (v[0] >= 3 and v[:2] < (3,3)):
error = "ERROR: IPython requires Python version 2.7 or 3.3 or above."
print(error, file=sys.stderr)
sys.exit(1)