[Distutils] Building and using a custom python with buildout

Michael Twomey micktwomey at gmail.com
Thu Oct 5 13:28:16 CEST 2006


I've been experimenting with buildout, so far so good. One thing I'd
like to do is build and use a python interpreter from source during
the buildout process. I want to make my buildouts as self contained as
possible, since I'm dealing with machines which might have python 2.3
installed but I want to use 2.4 or 2.5 for my app. Is this possible
with buildout?

I've built python but I can't figure out how to get buildout to use it:

develop = zc.recipe.cmmi
parts = python mypython

recipe = zc.recipe.cmmi
url = http://.../Python-2.5.tgz

recipe = zc.recipe.egg
interpreter = mypython
eggs = someegg

I'm guessing something along the lines of a python var in the buildout
section might work:
python = ${buildout:parts-directory}/python/bin/python (this doesn't work).
python = ${python:?}/bin/python (can't figure out a variable which works).


More information about the Distutils-SIG mailing list