Last change
on this file since 609 was 391, checked in by dmik, 11 years ago |
python: Merge vendor 2.7.6 to trunk.
|
-
Property svn:eol-style
set to
native
|
File size:
755 bytes
|
Line | |
---|
1 | # -*- coding: utf-8 -*-
|
---|
2 | """
|
---|
3 | Sphinx - Python documentation toolchain
|
---|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
5 |
|
---|
6 | :copyright: 2007-2010 by Georg Brandl.
|
---|
7 | :license: Python license.
|
---|
8 | """
|
---|
9 |
|
---|
10 | import sys
|
---|
11 | import warnings
|
---|
12 |
|
---|
13 | # Get rid of UserWarnings reported by pkg_resources.
|
---|
14 | warnings.filterwarnings('ignore', category=UserWarning, module='jinja2')
|
---|
15 |
|
---|
16 | if __name__ == '__main__':
|
---|
17 |
|
---|
18 | if sys.version_info[:3] < (2, 4, 0):
|
---|
19 | print >>sys.stderr, """\
|
---|
20 | Error: 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
|
---|
22 | to the path of an alternative interpreter executable, e.g.,
|
---|
23 | ``make html PYTHON=python2.5``).
|
---|
24 | """
|
---|
25 | sys.exit(1)
|
---|
26 |
|
---|
27 | from sphinx import main
|
---|
28 | sys.exit(main(sys.argv))
|
---|
Note:
See
TracBrowser
for help on using the repository browser.