Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <link rel="STYLESHEET" href="doc.css" type='text/css' /> | |
5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> | |
6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> | |
7 | <link rel="first" href="doc.html" title='Documenting Python' /> | |
8 | <link rel='contents' href='contents.html' title="Contents" /> | |
9 | <link rel='last' href='about.html' title='About this document...' /> | |
10 | <link rel='help' href='about.html' title='About this document...' /> | |
11 | <link rel="prev" href="tools-internal.html" /> | |
12 | <link rel="parent" href="tools.html" /> | |
13 | <link rel="next" href="graphics.html" /> | |
14 | <meta name='aesop' content='information' /> | |
15 | <title>7.3 Working on Cygwin </title> | |
16 | </head> | |
17 | <body> | |
18 | <DIV CLASS="navigation"> | |
19 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
20 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
21 | <tr> | |
22 | <td class='online-navigation'><a rel="prev" title="7.2 Internal Tools" | |
23 | href="tools-internal.html"><img src='../icons/previous.png' | |
24 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
25 | <td class='online-navigation'><a rel="parent" title="7 Processing Tools" | |
26 | href="tools.html"><img src='../icons/up.png' | |
27 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
28 | <td class='online-navigation'><a rel="next" title="8 Including Graphics" | |
29 | href="graphics.html"><img src='../icons/next.png' | |
30 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
31 | <td align="center" width="100%">Documenting Python</td> | |
32 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
33 | href="contents.html"><img src='../icons/contents.png' | |
34 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
35 | <td class='online-navigation'><img src='../icons/blank.png' | |
36 | border='0' height='32' alt='' width='32' /></td> | |
37 | <td class='online-navigation'><img src='../icons/blank.png' | |
38 | border='0' height='32' alt='' width='32' /></td> | |
39 | </tr></table> | |
40 | <div class='online-navigation'> | |
41 | <b class="navlabel">Previous:</b> | |
42 | <a class="sectref" rel="prev" href="tools-internal.html">7.2 Internal Tools</A> | |
43 | <b class="navlabel">Up:</b> | |
44 | <a class="sectref" rel="parent" href="tools.html">7 Processing Tools</A> | |
45 | <b class="navlabel">Next:</b> | |
46 | <a class="sectref" rel="next" href="graphics.html">8 Including Graphics</A> | |
47 | </div> | |
48 | <hr /></div> | |
49 | </DIV> | |
50 | <!--End of Navigation Panel--> | |
51 | ||
52 | <H2><A NAME="SECTION000830000000000000000"></A><A NAME="cygwin"></A> | |
53 | <BR> | |
54 | 7.3 Working on Cygwin | |
55 | </H2> | |
56 | ||
57 | <P> | |
58 | Installing the required tools under Cygwin under Cygwin can be a | |
59 | little tedious. Most of the required packages can be installed | |
60 | using Cygwin's graphical installer, while netpbm and <span class="LaTeX">LaTeX</span>2HTML | |
61 | must be installed from source. | |
62 | ||
63 | <P> | |
64 | Start with a reasonably modern version of Cygwin. If you haven't | |
65 | upgraded for a few years, now would be a good time. | |
66 | ||
67 | <P> | |
68 | Using the Cygwin installer, make sure your Cygwin installation | |
69 | includes Perl, Python, and the <span class="TeX">TeX</span> packages. Perl and Python | |
70 | are located under the <span class="guilabel">Interpreters</span> heading. The | |
71 | <span class="TeX">TeX</span> packages are located under the <span class="guilabel">Text</span> | |
72 | heading, and are named <code>tetex-*</code>. To ensure that all | |
73 | required packages are available, install every <code>tetex</code> | |
74 | package, except <code>tetex-x11</code>. (There may be a more minimal | |
75 | set, but I've not spent time trying to minimize the installation.) | |
76 | ||
77 | <P> | |
78 | The netpbm package is used by <span class="LaTeX">LaTeX</span>2HTML, and <em>must</em> be | |
79 | installed before <span class="LaTeX">LaTeX</span>2HTML can be successfully installed, even | |
80 | though its features will not be used for most Python | |
81 | documentation. References to download locations are located in | |
82 | the <a class="ulink" href="http://netpbm.sourceforge.net/README" | |
83 | >netpbm README</a>. | |
84 | Install from the latest stable source distribution according to | |
85 | the instructions. (Note that binary packages of netpbm are | |
86 | sometimes available, but these may not work correctly with | |
87 | <span class="LaTeX">LaTeX</span>2HTML.) | |
88 | ||
89 | <P> | |
90 | <span class="LaTeX">LaTeX</span>2HTML can be installed from the source archive, but only | |
91 | after munging one of the files in the distribution. Download the | |
92 | source archive from the <span class="LaTeX">LaTeX</span>2HTML website | |
93 | <a class="url" href="http://www.latex2html.org/">http://www.latex2html.org/</a> (or one of the many alternate | |
94 | sites) and unpack it to a build directory. In the top level of | |
95 | this build directory there will be a file named <span class="file">L2hos.pm</span>. | |
96 | Open <span class="file">L2hos.pm</span> in an editor, and near the bottom of the file | |
97 | replace the text <code>$^O</code> with the text | |
98 | <code>'unix'</code>. Proceed using this command to build and install | |
99 | the software: | |
100 | ||
101 | <P> | |
102 | <div class="verbatim"><pre> | |
103 | % ./configure && make install | |
104 | </pre></div> | |
105 | ||
106 | <P> | |
107 | You should now be able to build at least the DVI, HTML, PDF, and | |
108 | PostScript versions of the formatted documentation. | |
109 | ||
110 | <P> | |
111 | ||
112 | <DIV CLASS="navigation"> | |
113 | <div class='online-navigation'> | |
114 | <p></p><hr /> | |
115 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
116 | <tr> | |
117 | <td class='online-navigation'><a rel="prev" title="7.2 Internal Tools" | |
118 | href="tools-internal.html"><img src='../icons/previous.png' | |
119 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
120 | <td class='online-navigation'><a rel="parent" title="7 Processing Tools" | |
121 | href="tools.html"><img src='../icons/up.png' | |
122 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
123 | <td class='online-navigation'><a rel="next" title="8 Including Graphics" | |
124 | href="graphics.html"><img src='../icons/next.png' | |
125 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
126 | <td align="center" width="100%">Documenting Python</td> | |
127 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
128 | href="contents.html"><img src='../icons/contents.png' | |
129 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
130 | <td class='online-navigation'><img src='../icons/blank.png' | |
131 | border='0' height='32' alt='' width='32' /></td> | |
132 | <td class='online-navigation'><img src='../icons/blank.png' | |
133 | border='0' height='32' alt='' width='32' /></td> | |
134 | </tr></table> | |
135 | <div class='online-navigation'> | |
136 | <b class="navlabel">Previous:</b> | |
137 | <a class="sectref" rel="prev" href="tools-internal.html">7.2 Internal Tools</A> | |
138 | <b class="navlabel">Up:</b> | |
139 | <a class="sectref" rel="parent" href="tools.html">7 Processing Tools</A> | |
140 | <b class="navlabel">Next:</b> | |
141 | <a class="sectref" rel="next" href="graphics.html">8 Including Graphics</A> | |
142 | </div> | |
143 | </div> | |
144 | <hr /> | |
145 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
146 | </DIV> | |
147 | <!--End of Navigation Panel--> | |
148 | <ADDRESS> | |
149 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
150 | </ADDRESS> | |
151 | </BODY> | |
152 | </HTML> |