Setting up Python
On Linux
--------
Plone 3.1.x and prior need Python version 2.4 with development header support. Usually you can install this with your system package manager. E.g. for Ubuntu distributions
::
sudo apt-get install build-essential python-dev python2.4-dev
On Windows
----------
* Install `Python 2.4.x <http://www.python.org/download/releases/2.4.4>`_ from the installer.
* Add the Python installation directory (e.g. C:\\Python24\\Scripts)
and the "Scripts" directory (e.g. C:\\Python24\\Scripts) to your system
PATH. You can find PATH environment variable from My Computer Properties, Advanced tab.
* Install the `Python Win32 extensions <http://downloads.sourceforge.net/pywin32/pywin32-210.win32-py2.4.exe?modtime=1159009237&big_mirror=0>`_
* Install the ` Python imaging library <http://effbot.org/downloads/PIL-1.1.6.win32-py2.4.exe>`_
* Install the `MingW32 compiler <http://downloads.sourceforge.net/mingw/MinGW-5.1.3.exe?modtime=1168794334&big_mirror=1>`_
* Add the MingW32 bin directory (e.g. C:\\MinGW\\bin) to your system PATH.
* Find or created the file distutils.cfg in the lib\\distutils
directory where Python is installed (e.g. C:\\Python24\\Lib\\distutils),
and add this to it::
[build]
compiler = mingw32
