From 63a81b87d8b6b2a3cabdf2ebb3704136073ffb9c Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 29 Jul 2016 10:12:56 -0700 Subject: [PATCH] setup: explicitly forbid installing on Python 2 (#297) (cherry picked from commit e1d857653e2f16b0620c1a25872a2c0ab758cbba) --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 666a9d2..03ae8cf 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ """Setup module for PyLink IRC Services.""" +import sys + +if sys.version_info < (3, 4): + raise RuntimeError("PyLink requires Python 3.4 or higher.") + try: from setuptools import setup, find_packages except ImportError: