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