Skip to content

Commit

Permalink
Give a helpful hint if people try to install under Python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinsf committed Aug 3, 2021
1 parent e0b08a5 commit cf5e42e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from setuptools import setup
import sys

if sys.version_info[0] == 2:
sys.exit("Sorry, Python 2 is no longer supported. Please use a version of Qhue < 2.0.")

major_version = 2
minor_version = 0
Expand All @@ -11,6 +15,7 @@

setup(
name="qhue",
python_requires='>3.4',
version=version,
description="Qhue: python wrapper for Philips Hue API",
long_description=long_description,
Expand Down

0 comments on commit cf5e42e

Please sign in to comment.