[Distutils] Problem with buildout and zc.recipe.cmmi

Tarek Ziadé ziade.tarek at gmail.com
Sat Dec 12 18:40:49 CET 2009

On Sat, Dec 12, 2009 at 6:33 PM, Reinout van Rees <reinout at vanrees.org> wrote:
> On 12/12/09 3:25 PM, Tarek Ziadé wrote:
>>>> AttributeError: 'str' object has no attribute 'project_name'
>> Ok this is fixed now. 0.6.10 released
>> I think we should work on adding a functional test in Distribute, that
>> runs some zc.buildout scripts
>> to make sure this doesn't happen again,
>> Reinout, do you have some buildout.cfg scripts you could add in
>> Distribute, that can be built
>> quickly and illustrates this problem ?
> Well, including zc.buildout as a test dependency of distribute is a bit big,
> I guess.

I wasn't thinking about a regular unit test or functional test, but more like
a "smoke" test like what I am doing in distutils. That would be a
shell sequence in
a script that build a buildout and checks everything went well.

> The thing I'd try: add a test that does the thing zc.buildout does
> (str(exception)) and demonstrate that that's the right answer. Add a comment
> on why this needs testing.

Sure, for that particular case we can add this test, but what I really want is
a script that uses Distribute in various execution environments
because distribute
is just a layer and we can't find such bugs before they happen through other
softwares like zc.buildout.

> The thing that gave me an error (cmmi through staticlxml) is exactly one of
> those buildout tasks that takes 15 minutes to compile... ;-)

Yes, that is why a buildbot can help. Of course we can't test
everything, but if we
can prevent regressions in zc.buildout, that could be useful.


More information about the Distutils-SIG mailing list