From fd0e82a38507614a349571604c3050b6642e71e3 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 9 Apr 2002 14:14:38 +0000 Subject: Set the warn_dir option to 0 before running the install command. This suppresses bogus warnings about modules installed into a directory not in sys.path. Bugfix candidate. --- Lib/distutils/command/bdist_dumb.py | 1 + Lib/distutils/command/bdist_wininst.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py index b627a86..a135877 100644 --- a/Lib/distutils/command/bdist_dumb.py +++ b/Lib/distutils/command/bdist_dumb.py @@ -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') diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index 33dc28e..1683bb3 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -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 -- cgit v0.12