diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2000-05-13 02:01:22 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2000-05-13 02:01:22 (GMT) |
commit | f9ebf98725841879d4b3f6aa59c385d0e87cd652 (patch) | |
tree | d29196cf516872f4a8f53b1c1a1e628cffebf9e2 | |
parent | 8cb676195b899a4d84980ebf3dc34c8082303b96 (diff) | |
download | cpython-f9ebf98725841879d4b3f6aa59c385d0e87cd652.zip cpython-f9ebf98725841879d4b3f6aa59c385d0e87cd652.tar.gz cpython-f9ebf98725841879d4b3f6aa59c385d0e87cd652.tar.bz2 |
Moved check for installation to non-sys.path location so it comes
last (after writing list of installed files) -- that way, the warning
is more visible.
-rw-r--r-- | Lib/distutils/command/install.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index e6ed984..163b018 100644 --- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -437,14 +437,6 @@ class install (Command): if self.path_file: self.create_path_file () - normalized_path = map (os.path.normpath, sys.path) - if (not (self.path_file and self.install_path_file) and - os.path.normpath (self.install_lib) not in normalized_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") % - self.install_lib) - # write list of installed files, if requested. if self.record: outputs = self.get_outputs() @@ -459,7 +451,15 @@ class install (Command): outputs[counter] = outputs[counter][root_len:] self.execute(write_file, ("INSTALLED_FILES", outputs), - "Writing list of installed files") + "writing list of installed files") + + normalized_path = map (os.path.normpath, sys.path) + if (not (self.path_file and self.install_path_file) and + os.path.normpath (self.install_lib) not in normalized_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") % + self.install_lib) # run () |