3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

setup: explicitly forbid installing on Python 2 (#297)

This commit is contained in:
James Lu 2016-07-29 10:12:56 -07:00
parent accd5b70b3
commit e1d857653e

View File

@ -1,5 +1,10 @@
"""Setup module for PyLink IRC Services.""" """Setup module for PyLink IRC Services."""
import sys
if sys.version_info < (3, 4):
raise RuntimeError("PyLink requires Python 3.4 or higher.")
try: try:
from setuptools import setup, find_packages from setuptools import setup, find_packages
except ImportError: except ImportError: