blob: e19b10a04a86f3d5b91ac8a8cde7fdc45f363984 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +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__':
Georg Brandl87d2ccf2007-08-15 17:25:27 +000013
14 if sys.version_info[:3] < (2, 5, 0):
15 print >>sys.stderr, """\
Brett Cannonea424b52007-08-17 18:51:57 +000016Error: Sphinx needs to be executed with Python 2.5 or newer
Georg Brandl87d2ccf2007-08-15 17:25:27 +000017(If you run this from the Makefile, you can set the PYTHON variable
Brett Cannonea424b52007-08-17 18:51:57 +000018to the path of an alternative interpreter executable, e.g.,
19``make html PYTHON=python2.5``).
Georg Brandl87d2ccf2007-08-15 17:25:27 +000020"""
21 sys.exit(1)
22
Georg Brandl8ec7f652007-08-15 14:28:01 +000023 from sphinx import main
24 sys.exit(main(sys.argv))