[Python-Dev] Please give this patch for building bsddb a try

Gerhard Häring haering_python@gmx.de
Tue, 11 Jun 2002 21:58:48 +0200


* Oleg Broytmann <phd@phd.pp.ru> [2002-06-11 23:48 +0400]:
> On Tue, Jun 11, 2002 at 09:00:24PM +0200, Martin v. Loewis wrote:
> > Skip Montanaro <skip@pobox.com> writes:
> > 
> > > This would require source code changes to keep global symbols (at
> > > least the module init functions) from clashing.
> > 
> > It actually only requires different init functions. To support that
> > with distutils, you need to tell distutils to generate different
> > object files from the same source file, which is probably not
> > supported out of the box.
> 
> I know. Once I thought about sed/awk magic to generate two different
> modules from one template.

What about symlinks, like:

bsd18module.c -> bsd30module.c
                 bsd30module.c

and using a few #ifdefs in the C sources?

Gerhard
-- 
This sig powered by Python!
Außentemperatur in München: 17.1 °C      Wind: 1.7 m/s