diff options
author | Greg Ward <gward@python.net> | 2000-10-14 03:47:07 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-10-14 03:47:07 (GMT) |
commit | 0b4dafc39bce17900c6e4f18128b7ffafbc55dc4 (patch) | |
tree | 0da061086505846b676fa26288edf38cf16eef63 /Lib/distutils | |
parent | 2e38a50db173e61e9bf3ea0332645cb8f081dcc5 (diff) | |
download | cpython-0b4dafc39bce17900c6e4f18128b7ffafbc55dc4.zip cpython-0b4dafc39bce17900c6e4f18128b7ffafbc55dc4.tar.gz cpython-0b4dafc39bce17900c6e4f18128b7ffafbc55dc4.tar.bz2 |
Lyle Johnson: use 'normcase()' in addition to 'normpath()' when testing if
we actually installed modules to a directory in sys.path.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index 330f324..012b9f4 100644 --- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -497,10 +497,12 @@ class install (Command): "writing list of installed files to '%s'" % self.record) - normalized_path = map(os.path.normpath, sys.path) + sys_path = map(os.path.normpath, sys.path) + sys_path = map(os.path.normcase, sys_path) + install_lib = os.path.normcase(os.path.normpath(self.install_lib)) if (self.warn_dir and not (self.path_file and self.install_path_file) and - os.path.normpath(self.install_lib) not in normalized_path): + install_lib not in sys_path): self.warn(("modules installed to '%s', which is not in " + "Python's module search path (sys.path) -- " + "you'll have to change the search path yourself") % |