diff options
author | Greg Ward <gward@python.net> | 2000-03-31 02:53:07 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-03-31 02:53:07 (GMT) |
commit | 1aab6e964555bf615a853e86c1e2a26e28235803 (patch) | |
tree | e07659ccc3c86467e19e486d4a3f699404deda60 /Lib/distutils | |
parent | ba38d12063919288d6593593493cd37057d0ba67 (diff) | |
download | cpython-1aab6e964555bf615a853e86c1e2a26e28235803.zip cpython-1aab6e964555bf615a853e86c1e2a26e28235803.tar.gz cpython-1aab6e964555bf615a853e86c1e2a26e28235803.tar.bz2 |
Added 'get_inputs()'.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install_lib.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index 64f7cbc..5740c5e 100644 --- a/Lib/distutils/command/install_lib.py +++ b/Lib/distutils/command/install_lib.py @@ -110,4 +110,24 @@ class install_lib (Command): # get_outputs () + def get_inputs (self): + """Get the list of files that are input to this command, ie. the + files that get installed as they are named in the build tree. + The files in this list correspond one-to-one to the output + filenames returned by 'get_outputs()'.""" + + inputs = [] + + if self.distribution.has_pure_modules(): + build_py = self.find_peer ('build_py') + inputs.extend (build_py.get_outputs()) + + if self.distribution.has_ext_modules(): + build_ext = self.find_peer ('build_ext') + inputs.extend (build_ext.get_outputs()) + + return inputs + + + # class install_lib |