[Distutils] zc.buildout newbie question

Andreas Jung lists at zopyx.com
Tue Feb 3 11:43:43 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zope buildouts usually contain a part 'zopepy' generating
a Python interpreter under bin:

[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
interpreter = zopepy
extra-paths = ${zope2:location}/lib/python
scripts = zopepy


- -aj

On 03.02.2009 11:34 Uhr, Teemu Harju wrote:
> 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:
> ---
> [buildout]
> parts = twisted
> 
> [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.
> 
> Br,
> 
> - Teemu
> 
> -- 
> Teemu Harju
> 
> email/jabber: teemu.harju at gmail.com <mailto:teemu.harju at gmail.com>
> blog: http://blog.teemu.im
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig


- -- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkmIH94ACgkQCJIWIbr9KYwZdQCg2jNDgHKk1L5qDgc6iXe9pGep
M1EAoLDyrCrofMedpQecm2RLUrsO1ccC
=Nbhh
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090203/2f77fad6/attachment-0001.vcf>


More information about the Distutils-SIG mailing list