Commit 20851ca9 authored by PJ Eby's avatar PJ Eby

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
parent 1b23ba3c
......@@ -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:
......
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