[Grok-dev] Buildout configuration with development namespace package?

Uli Fouquet uli at gnufix.de
Sat May 16 10:06:10 EDT 2009


Am Samstag, den 16.05.2009, 14:16 +0200 schrieb Andreas Jung:
> On 16.05.09 09:39, Uli Fouquet wrote:
> > Hi Andreas,
> >
> > Andreas Jung wrote:
> >
> >   
> >> I have a namespace package zopyx.smartprintng.server containing my Grok
> >> code.
> >>
> >> It is located (as development egg) under
> >>
> >> <buildout_dir>/src/zopyx.smartprintng.server/zopyx/smartprintng/server/app.py
> >> ....
> >>
> >> All other parts of the buildout structure are generated using grokproject.
> >>
> >> I tried to adjust the generated buildout.cfg to my needs:
> >>
> >> http://svn.zope.org/zopyx.smartprintng.server/buildout/trunk/buildout.cfg?rev=100007&view=auto
> >>
> >> However I can not get buildout working:
> >>
> >> ajung at suxmac2:~/src/svn.zope.org/zopyx.smartprintng.server/buildout/trunk bin/buildout
> >>
> >> Develop:
> >> '/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/buildout/trunk/zopyx.smartprintng.server'
> >> unrecognized .svn/entries format in
> >> Unused options for buildout: 'download-directory'.
> >> Updating eggbasket.
> >> Installing app.
> >> Couldn't find index page for 'zopyx.smartprintng.server' (maybe misspelled?)
> >> Getting distribution for 'zopyx.smartprintng.server'.
> >> While:
> >>   Installing app.
> >>   Getting distribution for 'zopyx.smartprintng.server'.
> >> Error: Couldn't find a distribution for 'zopyx.smartprintng.server'.
> >>
> >> Obviously I am missing something stupid?!
> >>     
> > Did you try to replace in the [buildout] section
> >
> >   develop =  zopyx.smartprintng.server
> >
> > with 
> >
> >   develop = .
> >
> > As the setup.py of your package looks to be in ./ and not in a
> > zopyx.smartprintng.server/ directory, this would look more reasonable to
> > me.
> 
> Did not help :->

At least it should give you different output than before, right?

If you then start to synchronize the name of your devel egg (it's
spelled ``zopyx_smartprintng_server`` in setup.py) and buildout.cfg,
everything should run smoothly.

Right now you call your egg ``zopyx_smartprintng_server`` (name in
setup.py) but sometimes also use ``zopyx.smartprintng.server`` as egg
name in buildout sections. Use only one name and everything should run
fine. At least here it does.

Regards,

-- 
Uli

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20090516/9281c93b/attachment.bin 


More information about the Grok-dev mailing list