=======
Install
=======

Windows
=======

Prerequisites
-------------

1. Python

   Assuming you don't have python yet. If you have either version 2.6
   or 2.7 already installed, skip this.

   From http://www.python.org/download/releases/2.7/ download
   the `Windows x86 MSI Installer (2.7)` and run it.

   Select all the default options and install.

2. Python Setuptools.

   From http://pypi.python.org/pypi/setuptools download
   `setuptools-0.6c11.win32-py2.7.exe` (or any newer version) and run
   it.

   If you are using python 2.6 get the setuptools for 2.6.

3. HTML Tidy

   If you are a proofreader you already have this.

   http://tidy.sourceforge.net/

4. Groff. 

   From http://gnuwin32.sourceforge.net/packages/groff.htm
   download `Complete package, except sources - Setup`
   (groff-1.20.1-setup.exe) and run it.

   Select all the default options and install.


EpubMaker
---------

1. At the command prompt run:

   > easy_install epubmaker

2. Test your installation:

   > epubmaker --help
   > epubmaker http://www.gutenberg.org/masters/rst/181/181.rst



Debian
======

Prerequisites
-------------

(Does not work with python 3 yet. If your distribution uses python 3 as
default (not likely!), you'll have to parallel install python 2.6 or 2.7.)

  # apt-get install python python-setuptools groff tidy
  # apt-get install libpng-dev libjpeg-dev libfreetype6-dev
  

EpubMaker
---------

  # easy_install epubmaker



Kindlegen
---------

(Optional: Used only to make Kindle files):

  $ wget http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v1.1.tar.gz
  $ tar -xzf kindlegen_linux_2.6_i386_v1.1.tar.gz

