diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2011-03-16 16:19:13 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2011-03-16 16:19:13 -0400 |
commit | 5a4d274c93ab53f31f3926757cbe80a0dbdf0130 (patch) | |
tree | 1b017efc99970d433fde686f5708a23672da15a5 | |
parent | 6d6e6bcde6387eccbbd6ec9eadce75a25d0219a7 (diff) | |
download | external_python_setuptools-5a4d274c93ab53f31f3926757cbe80a0dbdf0130.tar.gz external_python_setuptools-5a4d274c93ab53f31f3926757cbe80a0dbdf0130.tar.bz2 external_python_setuptools-5a4d274c93ab53f31f3926757cbe80a0dbdf0130.zip |
Fix for issue192
--HG--
branch : distribute
extra : rebase_source : cbae39614a979ea69ced9a0541e71b0377c3a9d5
-rw-r--r-- | setuptools/command/bdist_egg.py | 6 |
1 files changed, 5 insertions, 1 deletions
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):]) |