[Python-checkins] commit of r41699 - sandbox/trunk/setuptools/setuptools/command/install_egg_info.py

phillip.eby python-checkins at python.org
Thu Dec 15 19:11:12 CET 2005


Author: phillip.eby
Date: Thu Dec 15 19:11:12 2005
New Revision: 41699

Modified:
   sandbox/trunk/setuptools/setuptools/command/install_egg_info.py
Log:
Make install_egg_info track every file it installs, not just the
directory it installs to.


Modified: sandbox/trunk/setuptools/setuptools/command/install_egg_info.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/install_egg_info.py	(original)
+++ sandbox/trunk/setuptools/setuptools/command/install_egg_info.py	Thu Dec 15 19:11:12 2005
@@ -23,6 +23,7 @@
         ).egg_name()+'.egg-info'
         self.source = ei_cmd.egg_info
         self.target = os.path.join(self.install_dir, basename) 
+        self.outputs = [self.target]
 
     def run(self):
         self.run_command('egg_info')
@@ -38,9 +39,8 @@
         )
 
 
-
     def get_outputs(self):
-        return [self.target]    # XXX list all files, not just dir?
+        return self.outputs
 
     def copytree(self):
         # Copy the .egg-info tree to site-packages
@@ -52,6 +52,7 @@
             for skip in '.svn/','CVS/':
                 if src.startswith(skip) or '/'+skip in src:
                     return None
+            self.outputs.append(dst)
             log.debug("Copying %s to %s", src, dst)
             return dst
 
@@ -79,4 +80,3 @@
 
 
 
-


More information about the Python-checkins mailing list