[Distutils] extra_objects and dependencies

Thomas Heller thomas.heller@ion-tof.com
Tue Jul 24 11:56:03 2001


From: "Rene Liebscher" <R.Liebscher@gmx.de>
> Juergen Hermann wrote:
> > 
> > Hi!
> > 
> > We have the problem that if you list additional objects as
> > extra_objects in an Extension object, the linker is NOT called when one
> > of these object files changes. Does that count as a bug?
> 
> Changing line 396 in distutils/commands/build_ext.py from
> 
> if not (self.force or newer_group(sources, ext_filename, 'newer')):
> 
> to 
> 
> if not (self.force or newer_group(sources + ext.extra_objects,
> ext_filename, 'newer')):
> 
> might help. (But I have not tested it for myself.)
> Default value of ext.extra_objects is [] so it
> should not influence any other cases.
> 
> 
> If this works someone who has write access to CVS might add it.

The recommended way to make sure this doesn't get forgotten
is to submit this patch to the sourceforge bug or patch tracker.

Thomas