<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<link rel=
"STYLESHEET" href=
"doc.css" type='text/css'
/>
<link rel=
"SHORTCUT ICON" href=
"../icons/pyfav.png" type=
"image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index'
/>
<link rel=
"first" href=
"doc.html" title='Documenting Python'
/>
<link rel='contents' href='contents.html'
title=
"Contents" />
<link rel='last' href='about.html' title='About this document...'
/>
<link rel='help' href='about.html' title='About this document...'
/>
<link rel=
"prev" href=
"tools-internal.html" />
<link rel=
"parent" href=
"tools.html" />
<link rel=
"next" href=
"graphics.html" />
<meta name='aesop' content='information'
/>
<title>7.3 Working on Cygwin
</title>
<div id='top-navigation-panel' xml:id='top-navigation-panel'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"7.2 Internal Tools"
href=
"tools-internal.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"7 Processing Tools"
href=
"tools.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"8 Including Graphics"
href=
"graphics.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">Documenting Python
</td>
<td class='online-navigation'
><a rel=
"contents" title=
"Table of Contents"
href=
"contents.html"><img src='../icons/contents.png'
border='
0' height='
32' alt='Contents' width='
32'
/></A></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"tools-internal.html">7.2 Internal Tools
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"tools.html">7 Processing Tools
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"graphics.html">8 Including Graphics
</A>
<!--End of Navigation Panel-->
<H2><A NAME=
"SECTION000830000000000000000"></A><A NAME=
"cygwin"></A>
Installing the required tools under Cygwin under Cygwin can be a
little tedious. Most of the required packages can be installed
using Cygwin's graphical installer, while netpbm and
<span class=
"LaTeX">LaTeX
</span>2HTML
must be installed from source.
Start with a reasonably modern version of Cygwin. If you haven't
upgraded for a few years, now would be a good time.
Using the Cygwin installer, make sure your Cygwin installation
includes Perl, Python, and the
<span class=
"TeX">TeX
</span> packages. Perl and Python
are located under the
<span class=
"guilabel">Interpreters
</span> heading. The
<span class=
"TeX">TeX
</span> packages are located under the
<span class=
"guilabel">Text
</span>
heading, and are named
<code>tetex-*
</code>. To ensure that all
required packages are available, install every
<code>tetex
</code>
package, except
<code>tetex-x11
</code>. (There may be a more minimal
set, but I've not spent time trying to minimize the installation.)
The netpbm package is used by
<span class=
"LaTeX">LaTeX
</span>2HTML, and
<em>must
</em> be
installed before
<span class=
"LaTeX">LaTeX
</span>2HTML can be successfully installed, even
though its features will not be used for most Python
documentation. References to download locations are located in
the
<a class=
"ulink" href=
"http://netpbm.sourceforge.net/README"
Install from the latest stable source distribution according to
the instructions. (Note that binary packages of netpbm are
sometimes available, but these may not work correctly with
<span class=
"LaTeX">LaTeX
</span>2HTML.)
<span class=
"LaTeX">LaTeX
</span>2HTML can be installed from the source archive, but only
after munging one of the files in the distribution. Download the
source archive from the
<span class=
"LaTeX">LaTeX
</span>2HTML website
<a class=
"url" href=
"http://www.latex2html.org/">http://www.latex2html.org/
</a> (or one of the many alternate
sites) and unpack it to a build directory. In the top level of
this build directory there will be a file named
<span class=
"file">L2hos.pm
</span>.
Open
<span class=
"file">L2hos.pm
</span> in an editor, and near the bottom of the file
replace the text
<code>$^O
</code> with the text
<code>'unix'
</code>. Proceed using this command to build and install
<div class=
"verbatim"><pre>
% ./configure
&& make install
You should now be able to build at least the DVI, HTML, PDF, and
PostScript versions of the formatted documentation.
<div class='online-navigation'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"7.2 Internal Tools"
href=
"tools-internal.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"7 Processing Tools"
href=
"tools.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"8 Including Graphics"
href=
"graphics.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">Documenting Python
</td>
<td class='online-navigation'
><a rel=
"contents" title=
"Table of Contents"
href=
"contents.html"><img src='../icons/contents.png'
border='
0' height='
32' alt='Contents' width='
32'
/></A></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"tools-internal.html">7.2 Internal Tools
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"tools.html">7 Processing Tools
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"graphics.html">8 Including Graphics
</A>
<span class=
"release-info">Release
2.4.2, documentation updated on
28 September
2005.
</span>
<!--End of Navigation Panel-->
See
<i><a href=
"about.html">About this document...
</a></i> for information on suggesting changes.