git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7379e83
)
check for python-2.7 so that pip installs get a proper message when not under 2.7
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 25 Sep 2014 17:21:57 +0000
(19:21 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 25 Sep 2014 17:21:57 +0000
(19:21 +0200)
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/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
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
# while cleaning up we might not have this..
try:
from sfa.util.version import version_tag