Mercurial > p > roundup > code
view roundup/version_check.py @ 5373:faf3f01ef446
Run into a roadblock with trying to install python 3 compatible
xapian. Leaving my attempt in as commented out code for next person
to attempt.
Reinstaled the code that works with python 2 environment so
CI can be used for testing python 2 at least.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 20 Jul 2018 21:16:49 -0400 |
| parents | 4566360871dc |
| children | 64b05e24dbd8 |
line wrap: on
line source
#!/usr/bin/env python # Roundup requires Python 2.7+ as mentioned in doc\installation.txt VERSION_NEEDED = (2,7) 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)
