[Python-checkins] CVS: python/dist/src/Lib/distutils/command install.py,1.58,1.59

A.M. Kuchling akuchling@users.sourceforge.net
Tue, 04 Sep 2001 13:06:45 -0700


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv13203

Modified Files:
	install.py 
Log Message:
[Bug #436732] install.py does not record a created *.pth file in the 
   INSTALLED_FILES output.  Modified version of a patch from 
   Jon Nelson (jnelson)


Index: install.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/install.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** install.py	2001/08/23 20:53:27	1.58
--- install.py	2001/09/04 20:06:43	1.59
***************
*** 538,543 ****
  
      def get_outputs (self):
!         # This command doesn't have any outputs of its own, so just
!         # get the outputs of all its sub-commands.
          outputs = []
          for cmd_name in self.get_sub_commands():
--- 538,542 ----
  
      def get_outputs (self):
!         # Assemble the outputs of all the sub-commands.
          outputs = []
          for cmd_name in self.get_sub_commands():
***************
*** 549,552 ****
--- 548,555 ----
                      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