[Pythonmac-SIG] Yet another problem with two Pythons on Panther
Jack Jansen
Jack.Jansen at cwi.nl
Tue Dec 16 05:39:50 EST 2003
On 16 Dec 2003, at 1:13, Stuart Bishop wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/12/2003, at 11:48 AM, Stuart Bishop wrote:
>
>>>>> This could probably be fixed by adding a
>>>>> -F/System/Library/Frameworks to the builds, but I don't think we
>>>>> can do this for the existing 10.3/2.3 distribution. Or can someone
>>>>> think of a workaround?
>
> If 'monkey patching' distutils is still an option (I haven't seen any
> other ideas on how to stop an installation of Python in
> /Library/Frameworks
> breaking the shipped installation in /System/Library/Frameworks), the
> adding the following three files into /Library/Python appears to work,
> and is about as clean as I can see this dubious-yet-supported mechanism
> getting.
I was thinking along the same lines, but this has one large
disadvantage:
*every* python script that you run will start off by patching
distutils. Not only
is this bad for performance, but if there is an error somewhere in the
patch
it will lead to bery confusing error messages (to the end user).
Can someone think a way of doing this patch *only* when distutils is
run?
--
Jack Jansen <Jack.Jansen at cwi.nl> http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list