Skip to content

Commit

Permalink
Better approach to dealing with alt Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Nov 15, 2018
1 parent d11bb31 commit 44b23f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from setuptools import setup, find_packages
import sys
import versioneer

import sys
if sys.version_info[0] < 3:
sys.stderr.write('jupyter-repo2docker requires Python 3 but the running Python is %s.%s.%s' % sys.version_info[:3])
sys.exit(1)

with open('README.md', encoding="utf8") as f:
readme = f.read()
readme = None
else:
with open('README.md', encoding="utf8") as f:
readme = f.read()

setup(
name='jupyter-repo2docker',
Expand Down

0 comments on commit 44b23f9

Please sign in to comment.