summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2006-05-30 17:56:27 +0000
committerphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2006-05-30 17:56:27 +0000
commitcb5d511536b5f197c5abd89a512fd7983f05eff0 (patch)
treee48d3b15436f97d6859f63beed60e310d30a3b04 /setuptools/command
parent9434e5e6c82fb66abd2e8e7ad1bb72c8befb019e (diff)
downloadpython-setuptools-cb5d511536b5f197c5abd89a512fd7983f05eff0.tar.gz
Fix a problem w/relative path generation if you install an egg whose
name begins with 'import'. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@46563 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/easy_install.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 523a406..ca3767e 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1394,7 +1394,7 @@ class PthDistributions(Environment):
def make_relative(self,path):
if normalize_path(os.path.dirname(path))==self.basedir:
- return os.path.basename(path)
+ return os.path.join(os.curdir, os.path.basename(path))
return path
@@ -1551,3 +1551,8 @@ usage: %(script)s [options] requirement_or_url ...
distclass=DistributionWithoutHelpCommands, **kw
)
)
+
+
+
+
+