Commit e0bd38e3 authored by Jason R. Coombs's avatar Jason R. Coombs

Move invocation bypass into function itself, pertinent to the docstring.

parent fec71bcb
......@@ -325,8 +325,7 @@ class manifest_maker(sdist):
elif os.path.exists(self.manifest):
self.read_manifest()
ei_cmd = self.get_finalized_command('egg_info')
if ei_cmd.egg_base != os.curdir:
self._add_egg_info(cmd=ei_cmd)
self._add_egg_info(cmd=ei_cmd)
self.filelist.include_pattern("*", prefix=ei_cmd.egg_info)
def _add_egg_info(self, cmd):
......@@ -345,6 +344,10 @@ class manifest_maker(sdist):
(which is looking for the absolute cmd.egg_info) will match
them.
"""
if cmd.egg_base == os.curdir:
# egg-info files were already added by something else
return
discovered = distutils.filelist.findall(cmd.egg_base)
resolved = (os.path.join(cmd.egg_base, path) for path in discovered)
self.filelist.allfiles.extend(resolved)
......
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