[Mailman-Developers] japanesecodes-1.4.5 install prob
Ron Jarrell
jarrell@vt.edu
Fri, 26 Apr 2002 18:07:19 -0400
At 05:51 AM 4/27/02 +0900, Tamito KAJIYAMA wrote:
>I got reports that bdist_wininst and bdist_rpm posed similar
>problems. Attached below are the patches the reporters sent
>to me. Honestly speaking I cannot figure out a right way that
>fixes problems on all platforms with any distutils options.
>
>Any comments and suggestions are very appreciated.
>
>Regards,
>
>--
>KAJIYAMA, Tamito <kajiyama@grad.sccs.chukyo-u.ac.jp>
>
>
>For bdist_wininst:
>--- setup.py.orig Thu Apr 18 01:20:38 2002
>+++ setup.py Thu Apr 18 01:20:16 2002
>@@ -27,7 +27,7 @@
> def finalize_options (self):
> install.finalize_options(self)
> self.distribution.data_files = [
>- (self.install_purelib, ["japanese.pth"])]
>+ ("lib/site-packages", ["japanese.pth"])]
>
> setup (name = "JapaneseCodecs",
> version = "1.4.5",
>
>
>For bdist_rpm:
>--- setup.py.orig Wed Apr 17 16:42:13 2002
>+++ setup.py Thu Apr 18 19:50:49 2002
>@@ -2,6 +2,7 @@
> # Tamito KAJIYAMA <30 November 2000>
> # $Id: setup.py,v 1.7 2002/04/17 03:53:31 kajiyama Exp $
>
>+import sys, os
> from distutils.core import setup, Extension
> from distutils.command.build_py import build_py
> from distutils.command.install import install
>@@ -27,7 +28,8 @@
> def finalize_options (self):
> install.finalize_options(self)
> self.distribution.data_files = [
>- (self.install_purelib, ["japanese.pth"])]
>+ (os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
>'site-packages'),
>+ ["japanese.pth"])]
>
> setup (name = "JapaneseCodecs",
> version = "1.4.5",
Uhh, I would think this would make the problem worse. These patches would
*force* the .pth file into the system site-packages directory, even if the
user has specified install options to force them into a private
directory. In this case mailman's install is trying to install the codecs
into a private library that mailman uses. mailman's install is
specifically designed so as to *not* be installed as root, which makes it
generally impossible for it to install the codecs if they *have* to go into
site-packages...