[Zope3-Users] Question about what recipe install needs to return

David Pratt fairwinds at eastlink.ca
Sun Apr 6 18:11:56 EDT 2008

Hi Jim. Many thanks. I created a list of paths to return and am just 
extending the list for each call to zc.buildout.easy_install.scripts 
which is fine. I was just curious since there is no uninstall in this 
case so thought I would ask.


Jim Fulton wrote:
> On Apr 6, 2008, at 2:10 PM, David Pratt wrote:
>> Hi. I have created a recipe where I am attempting to install multiple 
>> scripts to bin as part of an install method. As a result I have a few 
>> calls to zc.buildout.easy_install.scripts but am returning nothing 
>> from the install method.
>> The recipe emits a warning indicating 'A path or iterable os paths 
>> should be returned'. In fact I cannot return a list indicating it 
>> needs a string. Is it necessary to return anything from the install 
>> method?
> Yes.  You must return an string or an iterable of strings.
>> Why?
> Because that's the API.  :)
> Returning None is almost always a bug.  If you really want to say you 
> didn't install anything, return ().
> If you are installing scripts, then you should return their paths so 
> they get uninstalled if your part is uninstalled.
> Jim
> -- 
> Jim Fulton
> Zope Corporation

More information about the Zope3-users mailing list