Mercurial > cpython-lru_cache-weakref
annotate Doc/tools/sphinx-build.py @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | f128e6ebf90f |
| children | a3f645381d61 |
| rev | line source |
|---|---|
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
1 # -*- coding: utf-8 -*- |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
2 """ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
3 Sphinx - Python documentation toolchain |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
5 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
6 :copyright: 2007 by Georg Brandl. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
7 :license: Python license. |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
8 """ |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
9 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
10 import sys |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
11 |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
12 if __name__ == '__main__': |
|
42630
20aec9f34598
Manually patched a few things that didn't get merged in, but should.
Guido van Rossum <guido@python.org>
parents:
42604
diff
changeset
|
13 |
|
44711
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
14 if sys.version_info[:3] < (2, 4, 0): |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
15 print >>sys.stderr, """\ |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
16 Error: Sphinx needs to be executed with Python 2.4 or newer |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
17 (If you run this from the Makefile, you can set the PYTHON variable |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
18 to the path of an alternative interpreter executable, e.g., |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
19 ``make html PYTHON=python2.5``). |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
20 """ |
|
f128e6ebf90f
Doc build should work with 2.4 now.
Georg Brandl <georg@python.org>
parents:
44710
diff
changeset
|
21 sys.exit(1) |
|
42630
20aec9f34598
Manually patched a few things that didn't get merged in, but should.
Guido van Rossum <guido@python.org>
parents:
42604
diff
changeset
|
22 |
|
42604
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
23 from sphinx import main |
|
9e1529bf0442
Move the 3k reST doc tree in place.
Georg Brandl <georg@python.org>
parents:
diff
changeset
|
24 sys.exit(main(sys.argv)) |
