Commit 5a4d274c authored by Jason R. Coombs's avatar Jason R. Coombs

Fix for issue192

--HG--
branch : distribute
extra : rebase_source : cbae39614a979ea69ced9a0541e71b0377c3a9d5
parent 6d6e6bcd
......@@ -332,7 +332,11 @@ class bdist_egg(Command):
def copy_metadata_to(self, target_dir):
prefix = os.path.join(self.egg_info,'')
"Copy metadata (egg info) to the target_dir"
# normalize the path (so that a forward-slash in egg_info will
# match using startswith below)
norm_egg_info = os.path.normpath(self.egg_info)
prefix = os.path.join(norm_egg_info,'')
for path in self.ei_cmd.filelist.files:
if path.startswith(prefix):
target = os.path.join(target_dir, path[len(prefix):])
......
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