diff --git a/patacrep/__init__.py b/patacrep/__init__.py index 104a538a..3f37b681 100644 --- a/patacrep/__init__.py +++ b/patacrep/__init__.py @@ -3,8 +3,13 @@ from pkg_resources import resource_filename import os -# Version +# Check Python version +import sys +if sys.version_info < (3, 3): + print("ERROR: Your Python version is too old. Please use a Python version > 3.3.") + sys.exit(1) +# Patacrep version. __TUPLE_VERSION__ = (4, 0, 0, "alpha") __version__ = '.'.join([str(number) for number in __TUPLE_VERSION__])