[Distutils] zc.buildout newbie question
kiorky at cryptelium.net
Tue Feb 3 14:28:16 CET 2009
Teemu Harju a écrit :
> Hi all,
> I've been looking into zc.buildout since it seems to be quite useful
> application when developing and distributing Python applications. However,
> I'm finding it difficult to figure out how it should actually be used. I
> give you an example of what I'm trying to do and what my problem is. This is
> probably really trivial but bear with me. ;-)
> I'm developing a Twisted application and would like to use zc.buildout for
> bootstrapping development environments and probably even deploying the
> application to the production system.
> Here's my very simple buildout.cfg:
> parts = twisted
> recipe = minitage.recipe:du
> url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/Twisted-8.2.0.tar.bz2
> This works fine and installs Twisted under parts/site-packages-2.5/ and
> twistd, trial and other scripts under bin/. I'm doing all this inside
> virtualenv, but I guess it shouldn't matter.
> Now, my problem is that since the packages are installed in parts/ so they
> are not visible to my python interpreter. What is the right way to do this?
> Should I just add /parts/site-packages-2.5 to my PYTHONPATH or? Is there
> some way to do that using buildout.cfg? I tried to find examples of this but
> didn't find any.
> - Teemu
> Distutils-SIG maillist - Distutils-SIG at python.org
I am the maintener of minitage and you re using a quite old, and not
maintened recipe of this egg.
You may better to use minitage.recipe:eggs and minitage.recipe:scripts.
An example could be:
# The version which is put in the eggs cache.
Twisted = 8.2.0
recipe = minitage.recipe:egg
url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/Twisted-8.2.0.tar.bz2
recipe = minitage.recipe:scripts
Then, you ll have a nicely wrapped python interpreter in
More over, you can have a better look to minitage if you are not using
it in the whole already.
GPG Key FingerPrint: 0x1A1194B7681112AF
More information about the Distutils-SIG