aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-24 02:38:20 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-24 02:38:20 +0000
commit20851ca9363b0fded18d42c3bd0f2dd2105f5093 (patch)
tree8515ff3ccabdbda8887b0cffc9fb98f8826979e9
parent1b23ba3c222a3e4d09138bf2e252caa171cdc420 (diff)
downloadexternal_python_setuptools-20851ca9363b0fded18d42c3bd0f2dd2105f5093.tar.gz
external_python_setuptools-20851ca9363b0fded18d42c3bd0f2dd2105f5093.tar.bz2
external_python_setuptools-20851ca9363b0fded18d42c3bd0f2dd2105f5093.zip
Fixed the setup script sandbox facility not recognizing certain paths as
valid on case-insensitive platforms. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041146
-rwxr-xr-xsetuptools/sandbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index f124289a..dbc24ede 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -150,7 +150,7 @@ class DirectorySandbox(AbstractSandbox):
])
def __init__(self,sandbox):
- self._sandbox = os.path.realpath(sandbox)
+ self._sandbox = os.path.normcase(os.path.realpath(sandbox))
self._prefix = os.path.join(self._sandbox,'')
AbstractSandbox.__init__(self)
@@ -169,7 +169,7 @@ class DirectorySandbox(AbstractSandbox):
active = self._active
try:
self._active = False
- realpath = os.path.realpath(path)
+ realpath = os.path.normcase(os.path.realpath(path))
if realpath==self._sandbox or realpath.startswith(self._prefix):
return True
finally: