Skip to content

Commit

Permalink
Update python version sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Jun 2, 2020
1 parent 3b7d79f commit 9a64b9d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@
name = "jupyter_server"

# Minimal Python version sanity check
if sys.platform == 'win32':
if sys.version_info < (3,7):
error = "ERROR: %s requires Python version 3.7 or above." % name
print(error, file=sys.stderr)
sys.exit(1)
else:
if sys.version_info < (3,5):
error = "ERROR: %s requires Python version 3.5 or above." % name
print(error, file=sys.stderr)
sys.exit(1)
if sys.version_info < (3,5):
error = "ERROR: %s requires Python version 3.5 or above." % name
print(error, file=sys.stderr)
sys.exit(1)

# At least we're on the python version we need, move on.

Expand Down

0 comments on commit 9a64b9d

Please sign in to comment.