Commit 19cad08e authored by PJ Eby's avatar PJ Eby

Make install_egg_info track every file it installs, not just the

directory it installs to.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041699
parent 1c1bfde0
...@@ -23,6 +23,7 @@ class install_egg_info(Command): ...@@ -23,6 +23,7 @@ class install_egg_info(Command):
).egg_name()+'.egg-info' ).egg_name()+'.egg-info'
self.source = ei_cmd.egg_info self.source = ei_cmd.egg_info
self.target = os.path.join(self.install_dir, basename) self.target = os.path.join(self.install_dir, basename)
self.outputs = [self.target]
def run(self): def run(self):
self.run_command('egg_info') self.run_command('egg_info')
...@@ -38,9 +39,8 @@ class install_egg_info(Command): ...@@ -38,9 +39,8 @@ class install_egg_info(Command):
) )
def get_outputs(self): def get_outputs(self):
return [self.target] # XXX list all files, not just dir? return self.outputs
def copytree(self): def copytree(self):
# Copy the .egg-info tree to site-packages # Copy the .egg-info tree to site-packages
...@@ -52,6 +52,7 @@ class install_egg_info(Command): ...@@ -52,6 +52,7 @@ class install_egg_info(Command):
for skip in '.svn/','CVS/': for skip in '.svn/','CVS/':
if src.startswith(skip) or '/'+skip in src: if src.startswith(skip) or '/'+skip in src:
return None return None
self.outputs.append(dst)
log.debug("Copying %s to %s", src, dst) log.debug("Copying %s to %s", src, dst)
return dst return dst
...@@ -77,6 +78,5 @@ class install_egg_info(Command): ...@@ -77,6 +78,5 @@ class install_egg_info(Command):
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment