~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to Doc/tools/sphinx-build.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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__':
 
13
 
 
14
    if sys.version_info[:3] < (2, 4, 0):
 
15
        print >>sys.stderr, """\
 
16
Error: Sphinx needs to be executed with Python 2.4 or newer
 
17
(If you run this from the Makefile, you can set the PYTHON variable
 
18
to the path of an alternative interpreter executable, e.g.,
 
19
``make html PYTHON=python2.5``).
 
20
"""
 
21
        sys.exit(1)
 
22
 
 
23
    from sphinx import main
 
24
    sys.exit(main(sys.argv))