[Distutils] buildout examples clarification
Jeff Kunce
jjkunce at gmail.com
Thu Dec 24 04:06:43 CET 2009
Thanks for all the responses. I could understand the examples - and
wanted to get at the tools that were used. Your pointers are helpful.
I was trying to understand some finer points of buildout, without
necessarily learning all its internal workings. The tests, of course,
would be a good place for me to start.
-- Jeff
On Wed, Dec 23, 2009 at 1:17 PM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> On Wed, Dec 23, 2009 at 10:05 PM, Reinout van Rees <reinout at vanrees.org> wrote:
>> On 12/23/09 8:38 PM, Jeff Kunce wrote:
>>>
>>> I am using the buildout page on pypi as a reference
>>> http://pypi.python.org/pypi/zc.buildout
>>>
>>> What is the python shell used for the examples? I can follow what is
>>> going on, but I'm not familiar with some of the functions used. For
>>> example:
>>> >>> write(sample_buildout, 'recipes', 'mkdir.py', ...)
>>>
>>> Sorry if this is a silly question, but I'm stumped. Thanks.
>>
>> Those write() and cat() and ls() methods are helper methods that are
>> provided by zc.buildout's own test setup.
>>
>>
>> (Technically: they're injected into the test's globals namespace, look for a
>> ``test.globs['write'] = some_write_method`` in test*.py if you want the
>> details)
>>
>> Really handy when testing zc.buildout. But they might just be a "little bit
>> hidden" away in the test setup code ;-)
>
> If it's not the case already, a small section on these APIs at
> buildout.org, and a link to it in zc.buildout doc could help
> understand it imho
>
> Regards
> Tarek
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
More information about the Distutils-SIG
mailing list