[Python-checkins] python/dist/src/Lib/distutils/command build_ext.py,1.82,1.83
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Wed, 12 Jun 2002 13:08:58 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv15688/command
Modified Files:
build_ext.py
Log Message:
Add a new definition to Extension objects: depends.
depends is a list of files that the target depends, but aren't direct
sources of the target. think .h files.
Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_ext.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** build_ext.py 11 Jun 2002 06:22:30 -0000 1.82
--- build_ext.py 12 Jun 2002 20:08:56 -0000 1.83
***************
*** 423,427 ****
self.get_ext_filename(fullname))
! if not (self.force or newer_group(sources, ext_filename, 'newer')):
log.debug("skipping '%s' extension (up-to-date)", ext.name)
return
--- 423,428 ----
self.get_ext_filename(fullname))
! depends = sources + ext.depends
! if not (self.force or newer_group(depends, ext_filename, 'newer')):
log.debug("skipping '%s' extension (up-to-date)", ext.name)
return