]> granicus.if.org Git - python/commitdiff
Set the warn_dir option to 0 before running the install command.
authorThomas Heller <theller@ctypes.org>
Tue, 9 Apr 2002 14:14:38 +0000 (14:14 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 9 Apr 2002 14:14:38 +0000 (14:14 +0000)
This suppresses bogus warnings about modules installed into a directory
not in sys.path.

Bugfix candidate.

Lib/distutils/command/bdist_dumb.py
Lib/distutils/command/bdist_wininst.py

index b627a86a439d7f5c06133fad78d853a92f8ca0b8..a135877a8e0bfc7b5c20662e2d183f0c1ffb4375 100644 (file)
@@ -81,6 +81,7 @@ class bdist_dumb (Command):
         install = self.reinitialize_command('install', reinit_subcommands=1)
         install.root = self.bdist_dir
         install.skip_build = self.skip_build
+        install.warn_dir = 0
 
         self.announce("installing to %s" % self.bdist_dir)
         self.run_command('install')
index 33dc28ed0cf9d2b7dd0a8b3a0c91408816468643..1683bb31a73ed49047d36e2a86d66261fad5aa02 100644 (file)
@@ -98,6 +98,7 @@ class bdist_wininst (Command):
         install = self.reinitialize_command('install')
         install.root = self.bdist_dir
         install.skip_build = self.skip_build
+        install.warn_dir = 0
 
         install_lib = self.reinitialize_command('install_lib')
         # we do not want to include pyc or pyo files