diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 21:20:08 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 21:20:08 (GMT) |
commit | dc8412e54132069f6906fdd1912a85ed0f459d26 (patch) | |
tree | 63aab6387f6239ea9e95f9464f793bcc1c95c8c8 /Lib/distutils | |
parent | 8f787bf1d07b2f91c1bceea649aca5bf4bedb52c (diff) | |
download | cpython-dc8412e54132069f6906fdd1912a85ed0f459d26.zip cpython-dc8412e54132069f6906fdd1912a85ed0f459d26.tar.gz cpython-dc8412e54132069f6906fdd1912a85ed0f459d26.tar.bz2 |
Move warning about directory not on sys.path to debug level.
Fix a bunch of multiline string constants that used +.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index 746ca1f..322177f 100644 --- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -2,6 +2,8 @@ Implements the Distutils 'install' command.""" +from distutils import log + # created 1999/03/13, Greg Ward __revision__ = "$Id$" @@ -368,8 +370,8 @@ class install (Command): self.install_scripts is None or self.install_data is None): raise DistutilsOptionError, \ - "install-base or install-platbase supplied, but " + \ - "installation scheme is incomplete" + ("install-base or install-platbase supplied, but " + "installation scheme is incomplete") return if self.home is not None: @@ -464,8 +466,8 @@ class install (Command): (path_file, extra_dirs) = self.extra_path else: raise DistutilsOptionError, \ - "'extra_path' option must be a list, tuple, or " + \ - "comma-separated string with 1 or 2 elements" + ("'extra_path' option must be a list, tuple, or " + "comma-separated string with 1 or 2 elements") # convert to local form in case Unix notation used (as it # should be in setup scripts) @@ -522,10 +524,10 @@ class install (Command): if (self.warn_dir and not (self.path_file and self.install_path_file) and 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") % - self.install_lib) + log.debug(("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 () |