From bb27511cfa75af5e9c6b7874800eb2b47fd27706 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 25 Sep 2014 19:21:57 +0200 Subject: [PATCH] check for python-2.7 so that pip installs get a proper message when not under 2.7 --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 8f67e094..f7c70115 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,13 @@ from glob import glob import shutil from distutils.core import setup +# check for the correct version of python +major,minor = sys.version_info [0:2] +if (major,minor) != (2,7): + print ("Sorry, the SFA package is currently available only with python-2.7") + exit(1) + + # while cleaning up we might not have this.. try: from sfa.util.version import version_tag -- 2.43.0