(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.
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),
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
value = value + '/Include/$dist_name'
setattr(install,
'install_' + key,
- install.warn_dir = 0
value)
self.announce("installing to %s" % self.bdist_dir)