[Distutils] Installing the dependencies in the develop egg setup.py

Maurits van Rees m.van.rees at zestsoftware.nl
Wed Sep 7 18:15:50 CEST 2011

Op 01-09-11 07:29, Guruprasad schreef:
> Hi,
> On Wed, Aug 31, 2011 at 6:01 PM, Maurits van Rees
> <m.van.rees at zestsoftware.nl>  wrote:
>> It looks to me like src/wsb is not actually used.  You tell buildout that it
>> can find a development package in src/wsb if it wants to, but I do not see a
>> section that actually wants to use a package with that name.
> Here is my buildout.cfg
> <snip>
> [buildout]
> extensions = mr.developer
> auto-checkout = wsb
> develop = src/wsb
> eggs = wsb
> parts = django
> [sources]
> wsb = hg<repository URL>
> [django]
> recipe=djangorecipe
> projectegg = wsb
> extra-paths = src/
> settings = settings

I reproduced your setup.  The problems is indeed that src/wsb is not 
actually used, or perhaps better said: the package there is not 
installed in the buildout.  This is because djangorecipe does not 
actually know that it needs to install the wsb package.  Maybe it 
should, as you do have the line 'projectegg = wsb'.

For me it works when I add 'eggs = ${buildout:eggs}' to the recipe, so 
like this:

projectegg = wsb
eggs = ${buildout:eggs}
extra-paths = src/
settings = settings

(Or explicitly: eggs = wsb)

The difference in the resulting bin/django script is that these two 
extra lines are added to the path:


I hope this helps,

Maurits van Rees
Web App Programmer at Zest Software: http://zestsoftware.nl
Personal website: http://maurits.vanrees.org/

More information about the Distutils-SIG mailing list