[Distutils] Change the python interpreter for a recipe

Udo Spallek udono at gmx.net
Thu Aug 19 14:05:39 CEST 2010


Hi,

having a problem with my buildout and like to request some hints.

I have a buildout which creates a simple python interpreter environment
like explained in the buildout manual. Additionally I use a custom
script.

My problem is: How can I tell my_recipe to use the (newly created)
mypython interpreter, instead of using the standard python interpreter?

Or as a workaround: Is there a way to install the custom interpreter
before the buildout, maybe on bootstrap?

I like to avoid using virtualenv.

TIA and cheers

Udo Spallek

------------
buildout.cfg
------------

[buildout]
parts = mypython
        myrecipe

[mypython]
recipe = zc.recipe.egg
interpreter = mypython
eggs =
  relatorio

[myrecipe]
recipe = my_recipe
interpreter = mypython # This doesn't work



More information about the Distutils-SIG mailing list