From 5a4d274c93ab53f31f3926757cbe80a0dbdf0130 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 16 Mar 2011 16:19:13 -0400 Subject: Fix for issue192 --HG-- branch : distribute extra : rebase_source : cbae39614a979ea69ced9a0541e71b0377c3a9d5 --- setuptools/command/bdist_egg.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py index 3bb56fc3..68ca15c7 100644 --- a/setuptools/command/bdist_egg.py +++ b/setuptools/command/bdist_egg.py @@ -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):]) -- cgit v1.2.3