summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/install_lib.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-31 02:53:07 +0000
committerGreg Ward <gward@python.net>2000-03-31 02:53:07 +0000
commit93de09cd4def85a05360c19cc2e778dd1b529a87 (patch)
tree3c288bc83422397de630f4de111294c0031c65db /Lib/distutils/command/install_lib.py
parent1ba96003093d38707094c6cc466fdef0d5e38f3e (diff)
downloadcpython-93de09cd4def85a05360c19cc2e778dd1b529a87.tar.gz
Added 'get_inputs()'.
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r--Lib/distutils/command/install_lib.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index 64f7cbcf27..5740c5eed2 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