On 24 Nov, 2009, at 23:08, Christopher Barker wrote:

> 
> 
> Ronald Oussoren wrote:
> 
>>> No harm in having both ways, though.
>> I'm not 100% sure about that though, users may now end up with two copies of 
>> PIL unless they remove the .pth file as well. That wouldn't be a disaster, 
>> but I'd prefer to avoid that.
> 
> hmm -- I suppose we should check that. I agree that it's probably not a good 
> idea to have the contents of the package also in sys.path, but that's how PIL 
> is installed now. It seems that users could have it imported in two different 
> ways in their own code, regardless of how py2app imports it.
> 
> I guess the question is whether modulegraph is smart enough to realize that 
> they are the same thing!

The aren't according to the python rules: if you import both PIL.Image and 
Image you get two distinct modules in sys.modules (that is, 
sys.modules['Image'] is not sys.modules['PIL.Image']).  PIL isn't too large, 
adding it twice won't really be a problem but it would be nice to avoid this 
issue.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to