Comment 1 for bug 1129587

Revision history for this message
Jason Kölker (jason-koelker) wrote :

Pip is happy without the oslo/__init__.py due to this magic:

<oslo.config> jkoelker@null 0p2 ~/.virtualenvs/oslo.config/lib/python2.7/site-packages$ cat oslo_config-2013.1.a2.g394876f-py2.7-nspkg.pth
import sys,types,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('oslo',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and s
ys.modules.setdefault('oslo',types.ModuleType('oslo')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)