Personal tools
You are here: Home Documentation FAQs How Do I Install Python Modules To The Unified Installer?
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

How Do I Install Python Modules To The Unified Installer?

Up to Table of Contents

This FAQ applies to: Any version.

Plone's "Unified Installer" installation script compiles its own copy of Python, because many systems do not include an appropriate version. This can create a bit of confusion you want to install additional Python modules for this copy of Python. Here's how to sort it out.

The easiest way to work with a particular Python for a particular Plone installation is to put that Python first on your PATH:

$ export PATH=/opt/Plone-3.0.4/Python-2.4.4/bin:$PATH
$ which python
/opt/Plone-3.0.4/Python-2.4.4/bin/python

For python-ldap you should then be able to to:

$ python setup.py install

Note that this is basically the same as this:

$ /opt/Plone-3.0.4/Python-2.4.4/bin/python setup.py install

But manipulating your PATH environment variable just saves you a lot of typing. You can also create aliases in your shell profile (~/.bashrc on linux, ~/.profile on Mac OS X) to make it easier to put a particular Python first on your PATH:

# in your .bashrc or .profile
alias py4prod="export PATH=/opt/Plone-3.0.4/Python-2.4.4/bin:$PATH"
alias py4dev="export PATH=/opt/Plone-3.1/Python-2.4.4/bin:$PATH"

Then on your shell just type:

$ py4prod
$ echo $PATH
$ /opt/Plone-3.0.4/Python-2.4.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

 

Credits

This FAQ is reproduced from a forum message by Kevin Teague.  Thanks, Kevin, for all your great, detailed explaining! 

by Jon Stahl last modified December 29, 2007 - 23:18
Contributors: Kevin Teague
All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by