diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-12 20:08:56 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-12 20:08:56 (GMT) |
commit | 09e532bcecfb891b8aee0f9730fcbfccda2f8767 (patch) | |
tree | f3bd42c271e35f6e2c1a83aecb05965a78132fe7 /Lib/distutils/command | |
parent | aa6a664bbbfc611cf0131b954b715b4c917dc78c (diff) | |
download | cpython-09e532bcecfb891b8aee0f9730fcbfccda2f8767.zip cpython-09e532bcecfb891b8aee0f9730fcbfccda2f8767.tar.gz cpython-09e532bcecfb891b8aee0f9730fcbfccda2f8767.tar.bz2 |
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.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index d8f3dc8..21dd0dc 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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: |