]> granicus.if.org Git - python/commitdiff
[Bug #436732] install.py does not record a created *.pth file in the
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 4 Sep 2001 20:06:43 +0000 (20:06 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 4 Sep 2001 20:06:43 +0000 (20:06 +0000)
   INSTALLED_FILES output.  Modified version of a patch from
   Jon Nelson (jnelson)

Lib/distutils/command/install.py

index 5af4cf1055ea82f77627b33744270a09e02b9736..022e34a2e00bf322fd8b85358b703cf1f2493670 100644 (file)
@@ -537,8 +537,7 @@ class install (Command):
     # -- Reporting methods ---------------------------------------------
 
     def get_outputs (self):
-        # This command doesn't have any outputs of its own, so just
-        # get the outputs of all its sub-commands.
+        # Assemble the outputs of all the sub-commands.
         outputs = []
         for cmd_name in self.get_sub_commands():
             cmd = self.get_finalized_command(cmd_name)
@@ -548,6 +547,10 @@ class install (Command):
                 if filename not in outputs:
                     outputs.append(filename)
 
+        if self.path_file and self.install_path_file:
+            outputs.append(os.path.join(self.install_libbase,
+                                        self.path_file + ".pth"))
+            
         return outputs
 
     def get_inputs (self):