blob: 8c9331e0efb3ce30ddd53648f9e65b5f481329c2 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001# -*- coding: utf-8 -*-
2"""
3 Sphinx - Python documentation toolchain
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
6 :copyright: 2007 by Georg Brandl.
7 :license: Python license.
8"""
9
10import sys
11
12if __name__ == '__main__':
Guido van Rossumda27fd22007-08-17 00:24:54 +000013
14 if sys.version_info[:3] < (2, 5, 0):
15 print >>sys.stderr, """\
16Error: Sphinx needs to be executed with Python 2.5 or newer.
17(If you run this from the Makefile, you can set the PYTHON variable
18to the path of an alternative interpreter executable.)
19"""
20 sys.exit(1)
21
Georg Brandl116aa622007-08-15 14:28:22 +000022 from sphinx import main
23 sys.exit(main(sys.argv))