Attention

This document was written for an old version of Plone, Plone 3, and was last updated 1204 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Setting up Python

by Mikko Ohtamaa last modified Feb 04, 2009 03:08 AM
Instructions for setting up Python interpreter for development work with Eclipse.

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


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.