mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +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
|
# This check is also made in IPython/__init__, don't forget to update both when
|
||||||
# changing Python version requirements.
|
# changing Python version requirements.
|
||||||
#~ if sys.version[0:3] < '2.6':
|
if sys.version_info[:2] < (2,7):
|
||||||
#~ error = """\
|
error = "ERROR: IPython requires Python Version 2.7 or above."
|
||||||
#~ ERROR: 'IPython requires Python Version 2.6 or above.'
|
print(error, file=sys.stderr)
|
||||||
#~ Exiting."""
|
sys.exit(1)
|
||||||
#~ print >> sys.stderr, error
|
|
||||||
#~ sys.exit(1)
|
|
||||||
|
|
||||||
PY3 = (sys.version_info[0] >= 3)
|
PY3 = (sys.version_info[0] >= 3)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user