[Distutils] Which buildout to use?

Reinout van Rees reinout at vanrees.org
Tue Aug 16 17:56:25 CEST 2011

On 16-08-11 17:46, Sebastien Douche wrote:
> On Tue, Aug 16, 2011 at 13:45, Reinout van Rees<reinout at vanrees.org>  wrote:
>> >    recipe = zc.recipe.egg
> zc.recipe.egg can handle the new buildout options? When I want system
> packages I use z3.recipe.scripts :
> http://pypi.python.org/pypi/z3c.recipe.scripts/

I'm pretty sure zc.recipe.egg can, as it is bundled with buildout 
itself! But I *did* test out z3c.recipe.scripts and I had the same 
problem: buildout would try and build numpy from source.

And numpy for sure is installed (and osc.recipe.sysegg finds it just fine):

   $ python
   Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51)
   [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import numpy
   >>> numpy.__file__

And my bin/buildout is:

   $ cat bin/buildout

   import sys
   sys.path[0:0] = [

   import os
   path = sys.path[0]
   if os.environ.get('PYTHONPATH'):
       path = os.pathsep.join([path, os.environ['PYTHONPATH']])
os.environ.get('PYTHONPATH', '')
   os.environ['PYTHONPATH'] = path
   import site # imports custom buildout-generated site.py

   import zc.buildout.buildout

   if __name__ == '__main__':

And just to make sure, here's my buildout.cfg:

   parts = scripts
   include-site-packages = true
   allowed-eggs-from-site-packages =

   recipe = zc.recipe.egg
   eggs =

Anyone spot anything suspicious?


Reinout van Rees                    http://reinout.vanrees.org/
reinout at vanrees.org             http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

More information about the Distutils-SIG mailing list