Personal tools
You are here: Home Weblog Archive 2007 November 14 Trying out eggs and applications with workingenv, without poluting the system python
Document Actions
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Trying out eggs and applications with workingenv, without poluting the system python

by tibi last modified 2007-11-14 18:24
Filed Under:

Ever since I've started working with zc.buildout I've grown to love the whole "environment as project" setup that it provides: eggs and python packages are installed and contained in the buildout and they don't polute the system packages. There is another alternative: workingenv, which, while simpler in scope, it is easier to setup and use. For example, recently I've wanted to see if lxml 2.0 can be installed in my system. I've had problems with the earlier alphas, which made it difficult or impossible to compile the egg. First, I've installed workingenv.py in my system:

sudo easy_install workingenv

Then I made a folder ~/tmp/lx, which I then used as a workingenv environment:

workingenv ~/tmp/lx

Next, I've activated the environment:

source ~/tmp/lx/bin/activate

And finally, I could easy_install my desired egg:

~/tmp/lx/bin/easy_install lxml

It took a while to compile, but in the end I had the egg installed in ~/tmp/lx/lib/python2.5/ and, while the workingenv was activated with "source bin/activate", I could run the system's python and have the eggs installed in the workingenv available to me.

Weblog
Atom
RDF
RSS 2.0
Powered by Quills
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: