mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
aa6a664bbb
commit
09e532bcec
2 changed files with 6 additions and 1 deletions
|
@ -422,7 +422,8 @@ class build_ext (Command):
|
|||
ext_filename = os.path.join(self.build_lib,
|
||||
self.get_ext_filename(fullname))
|
||||
|
||||
if not (self.force or newer_group(sources, ext_filename, 'newer')):
|
||||
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
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue