[Patches] [ python-Patches-533008 ] specifying headers for extensions
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 21 Mar 2002 03:09:37 -0800
Patches item #533008, was opened at 2002-03-21 12:09
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=533008&group_id=5470
Category: Distutils and setup.py
Group: Python 2.3
Status: Open
Resolution: None
Priority: 7
Submitted By: Thomas Heller (theller)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: specifying headers for extensions
Initial Comment:
This patch allows to specify that C header files are
part of source files for dependency checking.
The 'sources' list in Extension instances can be
simple filenames as before, but they can also be
SourceFile instances created by
SourceFile("myfile.c", headers=["inc1.h", "inc2.h"]).
Unfortunately not only changes to command.build_ext
and command.build_clib had to be made, also all the
ccompiler (sub)classes have to be changed because the
ccompiler does the actual dependency checking. I
updated all the ccompiler subclasses except
mwerkscompiler.py, but only msvccompiler has actually
been tested.
The argument list which dep_util.newer_pairwise() now
accepts has changed, the first arg must now be a
sequence of SourceFile instances. This may be
problematic, better would IMO be to move this function
(with a new name?) into ccompiler.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=533008&group_id=5470