check for python-2.7 so that pip installs get a proper message when not under 2.7
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 25 Sep 2014 17:21:57 +0000 (19:21 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 25 Sep 2014 17:21:57 +0000 (19:21 +0200)
setup.py

index 8f67e09..f7c7011 100755 (executable)
--- 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