[Zope3-dev] Re: Core dump with z3

Guido van Rossum guido@python.org
Tue, 29 Apr 2003 09:54:59 -0400


> To: Marius Gedminas <mgedmin@codeworks.lt>
> 
> > This happens to me every now and then.  It looks like the regular build
> > process does not always rebuild C modules and you need to perform a make
> > clean manually.

[me]
> That's because the setup.py doesn't know all the dependencies of the C
> modules.  I think it only recompiles if the module's main .c file is
> changed; but that's not enough because most of the BTree code is
> actually in a template file that is included by the main .c files.
> 
> Hmm...  I think distutils now has a way to express generalized
> dependencies; maybe that should be used?  I'll investigate.

The setup.py file contains all the correct dependency information;
however Python 2.2's distutils doesn't support it, and there's not
much you can do about this except by doing a "make clean" every once
in a while.

Python 2.3 does.

--Guido van Rossum (home page: http://www.python.org/~guido/)