3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

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

(cherry picked from commit e1d857653e)
This commit is contained in:
James Lu 2016-07-29 10:12:56 -07:00
parent a56e464eb6
commit 63a81b87d8

View File

@ -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: