Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | """ |
| 3 | Sphinx - Python documentation toolchain |
| 4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 5 | |
| 6 | :copyright: 2007 by Georg Brandl. |
| 7 | :license: Python license. |
| 8 | """ |
| 9 | |
| 10 | import sys |
| 11 | |
| 12 | if __name__ == '__main__': |
Georg Brandl | 87d2ccf | 2007-08-15 17:25:27 +0000 | [diff] [blame] | 13 | |
Georg Brandl | fdca6d8 | 2007-08-21 06:01:18 +0000 | [diff] [blame] | 14 | if sys.version_info[:3] < (2, 5, 1): |
Georg Brandl | 87d2ccf | 2007-08-15 17:25:27 +0000 | [diff] [blame] | 15 | print >>sys.stderr, """\ |
Georg Brandl | fdca6d8 | 2007-08-21 06:01:18 +0000 | [diff] [blame] | 16 | Error: Sphinx needs to be executed with Python 2.5.1 or newer |
Georg Brandl | 87d2ccf | 2007-08-15 17:25:27 +0000 | [diff] [blame] | 17 | (If you run this from the Makefile, you can set the PYTHON variable |
Brett Cannon | ea424b5 | 2007-08-17 18:51:57 +0000 | [diff] [blame] | 18 | to the path of an alternative interpreter executable, e.g., |
| 19 | ``make html PYTHON=python2.5``). |
Georg Brandl | 87d2ccf | 2007-08-15 17:25:27 +0000 | [diff] [blame] | 20 | """ |
| 21 | sys.exit(1) |
| 22 | |
Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 23 | from sphinx import main |
| 24 | sys.exit(main(sys.argv)) |