From aca4c433b96a66e220ff69802d04bb5c7c4dc66e Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 11 Feb 2018 12:58:27 -0800 Subject: [PATCH] upload_doc must be run with python 3 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3874a3e3..463e79bc 100644 --- a/setup.py +++ b/setup.py @@ -216,7 +216,8 @@ class upload_doc(distutils.cmd.Command): user_options = [] def initialize_options(self): - pass + if sys.version_info < (3,): + raise SystemExit('upload_doc must be run with python 3') def finalize_options(self): pass