Mercurial > p > roundup > code
view roundup/version_check.py @ 4682:0c2cad65ebba
version_check.py: Bump required Python version from 2.1.1+ to 2.5+
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Wed, 28 Nov 2012 00:12:23 +0300 |
| parents | 6e3e4f24c753 |
| children | 4566360871dc |
line wrap: on
line source
#!/usr/bin/env python # Roundup requires Python 2.5+ as mentioned in doc\installation.txt VERSION_NEEDED = (2,5) import sys if sys.version_info < VERSION_NEEDED: print "Content-Type: text/plain\n" print "Roundup requires Python %s.%s or newer." % VERSION_NEEDED sys.exit(0)
