Better approach to dealing with alt Python versions
As suggested by
MODIFY
setup.py
setup.py
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)
-
+ readme = None
+else:
with open('README.md', encoding="utf8") as f:
readme = f.read()

Better approach to dealing with alt Python versions

As suggested by @betatim https://github.com/jupyter/repo2docker/pull/472#issuecomment-439219985