blob: 8f952be22bc00e7624139034b6011982375e3ad6 [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
Guido van Rossum04110fb2007-08-24 16:32:05 +000014 if sys.version_info[:3] < (2, 5, 1):
Guido van Rossumda27fd22007-08-17 00:24:54 +000015 print >>sys.stderr, """\
Guido van Rossum04110fb2007-08-24 16:32:05 +000016Error: Sphinx needs to be executed with Python 2.5.1 or newer
Guido van Rossumda27fd22007-08-17 00:24:54 +000017(If you run this from the Makefile, you can set the PYTHON variable
Guido van Rossum61e21b52007-08-20 19:06:03 +000018to the path of an alternative interpreter executable, e.g.,
19``make html PYTHON=python2.5``).
Guido van Rossumda27fd22007-08-17 00:24:54 +000020"""
21 sys.exit(1)
22
Georg Brandl116aa622007-08-15 14:28:22 +000023 from sphinx import main
24 sys.exit(main(sys.argv))