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