blob: 4f4d53d01eabdff0333dd5d8b16d30e710b5eb9d [file] [log] [blame]
Jack Jansen6d22b562005-04-17 21:30:52 +00001In this directory you can build the Python documentation in a form that
2is suitable for access with Apple Help Viewer. This will enable the
3"Python Documentation" menu entries in the MacPython IDE Help menu.
4
5Unfortunately the procedure to build the docs is not very streamlined.
6
7First, edit setup.py. At the top, edit MAJOR_VERSION and MINOR_VERSION,
8and check that DESTDIR makes sense. The documentation will be installed
9inside PythonIDE.app.
10
11In DocBuild.initialize_options, set self.download to True if you want to
12download the docs. Set it to False if you want to build the docs from
13the source tree, but this requires LaTex and lots of other stuff.
14Doable, but not easy.
15
16Second, if you want to download the docs you may need to do a couple
17more edits. The way the docs are packaged will often change between
18major releases. Fiddle DocBuild.downloadDocs to make it do the right
19thing (download the docs from python.org, unpack them, rename the
20directory to "build/html").
21
22After these edits you should be ready to roll. "pythonw setup.py build"
23should download and unpack (or build) the docs. Next, it will do some
24magic to make the docs indexable. Finally, it will run the Apple Help
25Indexing Tool. (This last step is the reason you must use "pythonw" as
26opposed to "python"). Usually it will time out while waiting for AHIT to
27do its work. Wait until AHIT is done.
28
29Now you're ready to install with "python setup.py install".
30
31After this is done test your work. Fire up PythonIDE, and check that
32Help->Python Documentation brings up the documentation in the Help Viewer.
33Also open an IDE edit window, type something like "import sys", select
34"import", and use Help->Lookup in Python Documentation to check that the
35index has been generated correctly.