From: Anthony Baxter Date: Thu, 18 Apr 2002 02:32:25 +0000 (+0000) Subject: corrected backport. 'patch' made me sad, it got it horribly wrong X-Git-Tag: v2.2.2b1~441 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3492eb2e7e2caa5a906b23843d4474971ca91d05;p=thirdparty%2FPython%2Fcpython.git corrected backport. 'patch' made me sad, it got it horribly wrong (no idea why, or how) backport theller's patch 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. --- diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py index 13fe27c3aaa6..5dd64a6e3b1e 100644 --- a/Lib/distutils/command/bdist_dumb.py +++ b/Lib/distutils/command/bdist_dumb.py @@ -75,13 +75,13 @@ class bdist_dumb (Command): install = self.reinitialize_command('install', reinit_subcommands=1) install.root = self.bdist_dir + install.warn_dir = 0 self.announce("installing to %s" % self.bdist_dir) self.run_command('install') # And make an archive relative to the root of the # pseudo-installation tree. - install.warn_dir = 0 archive_basename = "%s.%s" % (self.distribution.get_fullname(), self.plat_name) self.make_archive(os.path.join(self.dist_dir, archive_basename), diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index 58d3c9372593..8b72bcba34da 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -84,6 +84,7 @@ class bdist_wininst (Command): install = self.reinitialize_command('install') install.root = self.bdist_dir + install.warn_dir = 0 install_lib = self.reinitialize_command('install_lib') # we do not want to include pyc or pyo files @@ -98,7 +99,6 @@ class bdist_wininst (Command): value = value + '/Include/$dist_name' setattr(install, 'install_' + key, - install.warn_dir = 0 value) self.announce("installing to %s" % self.bdist_dir)