Installation Instructions for Linux ----------------------------------- If the dependencies are not already installed, get libart from http://www.levien.com/libart/ libpng from http://www.libpng.org/ zlib from http://www.gzip.org/zlib/ freetype 1 from http://www.freetype.org (NOTE: freetype 2 is not compatible) Of these, libpng and zlib are included in most distributions. Either get the binary packages for your distribution or compile and install these libraries in the usual manner by running the following commands in the source directory: ./configure make make install Edit setup.py variables "include_dirs" and "library_dirs" to point towards your system include and lib directories. Run the following commands: python setup.py build python setup.py install Installation Instructions for Windows ------------------------------------- The first thing you need for Windows is the MinGW tools - the Msys environment and gcc for Windows. Get those at http://www.mingw.org. Next, if you have never compiled Python extensions with the MinGW tools, you need to follow the instructions here http://sebsauvage.net/python/mingw.html to get this to work. Next, go to http://sourceforge.net/project/showfiles.php?group_id=23617 and get the following files: libart-2.3.3-1-lib.zip libpng-1.2.5-1-lib.zip zlib-1.2.1-1-lib.zip Unzip these either into the Paint directory or into your Msys base directory. If you are not interested in using these libraries for anything else, I would suggest the former. Download Freetype 1.3.1 from http://www.freetype.org. Store it where you want the library, enter the Msys environment and go to that directory. Run the following commands to compile it: tar xzf freetype-1.3.1.tar.gz cd freetype-1.3.1 ./configure --enable-shared=0 # you just want the library, the tests won't build make ttlib The following commands will copy the headers into the Paint directory (with a suitable substitution for paintpath): # put the headers in the right place mkdir $paintpath/include/freetype cp -p lib/*.h $paintpath/include/freetype # note the silly location of the libraries... cp -p lib/.libs/libttf.* $paintpath/lib/ Alternatively, you could copy them into the relevant folders off your Msys base directory If you have copied everything into your Msys directory, you need to edit setup.py so "include_dirs" and "library_dirs" point to the relevant directories in your Mssy distribution. Run the following commands: python setup.py build -cmingw32 python setup.py install