Update scripts/check_python.py (Python 2.4 not supported)

This commit is contained in:
Peter Cock
2012-04-17 13:48:51 +01:00
parent 6c2076e879
commit e6628b9b66
+2 -2
View File
@@ -1,14 +1,14 @@
import os, sys
msg = """ERROR: Your Python version is: %s
Galaxy is currently supported on Python 2.4, 2.5 and 2.6. To run Galaxy,
Galaxy is currently supported on Python 2.5, 2.6 and 2.7. To run Galaxy,
please download and install a supported version from python.org. If a
supported version is installed but is not your default, getgalaxy.org
contains instructions on how to force Galaxy to use a different version.""" % sys.version[:3]
def check_python():
try:
assert sys.version_info[:2] >= ( 2, 4 ) and sys.version_info[:2] <= ( 2, 7 )
assert sys.version_info[:2] >= ( 2, 5 ) and sys.version_info[:2] <= ( 2, 7 )
except AssertionError:
print >>sys.stderr, msg
raise