deap.sourceforge.net

The install instructions below are divided into two main sections. The first section discusses installing the binary DEAP package on Windows. The second section describes how to build DEAP from source, and is applicable to both Windows and Linux.

[ Binary Installation (Windows Only) | Source Installation (Windows / Linux) ]

Binary Installation

Installing the binary version of DEAP is mainly about getting the prerequisites. DEAP requires:

  1. Python
  2. Numerical Python
  3. wxPython

So, step 1 involves downloading and installing these three prerequisites. After doing this, it is a good idea to ensure that the python executable is in your path.

Step 2: unzip the deap-win32-binary-1.0.zip available from our downloads area. Run "deap.bat" and enjoy.


Source Installation

The source installation is also primarily about prequisites, but in this case things are a little more complicated. First, we'll cover the easy prerequisites:

  1. Python
  2. Numerical Python
  3. wxPython

Be sure to get a source distribution of wxPython and build it locally. We need the source to build the pgplot driver, which is the next step.

Get the pgplot source distribution from http:/www.astro.caltech.edu/~tjp/pgplot/ and the pgplot patch from our download area. Unzip the patch over the 5.2 source distribution - it replaces a few files and adds our driver. Having applied the DEAP patch, you can then proceed to follow the pgplot installation instructions at: http://www.astro.caltech.edu/~tjp/pgplot/install.html. Set the WXWIN environment variable to point to the top of your wxPython source tree and be sure to build the "wxPlot" driver - that's what we're after.

Windows users please note: Building pgplot for Windows has never been an easy proposition, but it's doable. If you don't want to do it, please see our binary installation instructions. You will need a Windows C++ compiler (Visual C++ 6.0 or later is best) and f2c. Having installed f2c, you can follow the pgplot install instructions for Unix users - but use "makemake.win32" instead of the Unix "makemake". Sounds painful? It is.

The next prequisite you need in order to build DEAP from source is the GNU Scientific Library. Linux users please follow the GSL installation instructions. Windows users may find it easier to download the GSL setup program from our file area. It's an installer, run it.

That's it for the prereqs! Now we can build DEAP itself. Get the DEAP source, either from our file area or from CVS. Find the most appropriate makefile in the "admin" directory and copy it to the root as "config.mak". Edit this makefile as necessary for your local system. Then, using a recent version of GNU make, just type "make" and "make install" at the top level. You're finally ready to play with DEAP: "python deap.py".