mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
update version-check message in setup.py and IPython.__init__
clearer message that IPython no longer supports 2.6.
This commit is contained in:
parent
5e590218f2
commit
0b97ac8138
10
setup.py
10
setup.py
@ -26,12 +26,10 @@ import sys
|
||||
|
||||
# This check is also made in IPython/__init__, don't forget to update both when
|
||||
# changing Python version requirements.
|
||||
#~ if sys.version[0:3] < '2.6':
|
||||
#~ error = """\
|
||||
#~ ERROR: 'IPython requires Python Version 2.6 or above.'
|
||||
#~ Exiting."""
|
||||
#~ print >> sys.stderr, error
|
||||
#~ sys.exit(1)
|
||||
if sys.version_info[:2] < (2,7):
|
||||
error = "ERROR: IPython requires Python Version 2.7 or above."
|
||||
print(error, file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
PY3 = (sys.version_info[0] >= 3)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user