]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added 'get_inputs()'.
authorGreg Ward <gward@python.net>
Fri, 31 Mar 2000 02:53:07 +0000 (02:53 +0000)
committerGreg Ward <gward@python.net>
Fri, 31 Mar 2000 02:53:07 +0000 (02:53 +0000)
Lib/distutils/command/install_lib.py

index 64f7cbcf27030767ba40922dfff09763e913a752..5740c5eed2f5fdb912be46988e66e77e03142fe8 100644 (file)
@@ -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