diff --git a/docs/changes.rst b/docs/changes.rst index df969f27..11d98905 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -12,7 +12,7 @@ Another great release. **Changes** -- None yet. +- Exit early if not Python >= 2.6, < 3. 0.1.0a3 (2010-08-03) diff --git a/mopidy/__init__.py b/mopidy/__init__.py index b19b5e00..13ce67c8 100644 --- a/mopidy/__init__.py +++ b/mopidy/__init__.py @@ -1,3 +1,7 @@ +import sys +if not (2, 6) <= sys.version_info < (3,): + sys.exit(u'Mopidy requires Python >= 2.6, < 3') + from mopidy import settings as raw_settings def get_version():