On 22 Jul, 2010, at 19:06, Russell E. Owen wrote:
>>> 
>> 
>> How did you install zope.interface? Basically which easy_install or pip 
>> command-line did you use to install?
> 
> I used "pip install zope.interface".


When you use "pip install" to install packages namespace packages get installed 
in an odd way: the __init__.py file in the namespace package is not installed, 
and pth file is installed to fakes having a real package, for zope.interface 
the following
tet installed:

* zope
* zope.interface-3.6.1-py2.7-nspkg.pth
* zope.interface-3.6.1-py2.7.egg-info

The nspkg.pth file is very ugly: 

import sys,types,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], 
*('zope',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and 
sys.modules.setdefault('zope',types.ModuleType('zope')); mp = (m or []) and 
m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)

It should be easy enough to teach modulegraph about this and insert and empty 
__init__.py file insite the zip file in the app bundle.

Increasinly-hating-setuptools[*],

   Ronald

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

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

Reply via email to