blob: a0bd7fa0db08ed8adcdcb46d06c1b568ce8382ff [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001# -*- coding: utf-8 -*-
2"""
3 Sphinx - Python documentation toolchain
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
Georg Brandl6ff81bf2010-08-03 12:34:07 +00006 :copyright: 2007-2010 by Georg Brandl.
Georg Brandl8ec7f652007-08-15 14:28:01 +00007 :license: Python license.
8"""
9
10import sys
Georg Brandl6ff81bf2010-08-03 12:34:07 +000011import warnings
12
13# Get rid of UserWarnings reported by pkg_resources.
14warnings.filterwarnings('ignore', category=UserWarning, module='jinja2')
Georg Brandl8ec7f652007-08-15 14:28:01 +000015
16if __name__ == '__main__':
Georg Brandl87d2ccf2007-08-15 17:25:27 +000017
Georg Brandl20771312008-01-16 20:29:00 +000018 if sys.version_info[:3] < (2, 4, 0):
19 print >>sys.stderr, """\
20Error: Sphinx needs to be executed with Python 2.4 or newer
21(If you run this from the Makefile, you can set the PYTHON variable
22to the path of an alternative interpreter executable, e.g.,
23``make html PYTHON=python2.5``).
24"""
25 sys.exit(1)
Georg Brandl87d2ccf2007-08-15 17:25:27 +000026
Georg Brandl8ec7f652007-08-15 14:28:01 +000027 from sphinx import main
28 sys.exit(main(sys.argv))