oslo.config doesn't install oslo package's __init__.py

Bug #1129587 reported by Jason Kölker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Critical
Jason Kölker
Grizzly
Fix Released
Critical
Jason Kölker

Bug Description

When oslo.config is installed via easy_install or python setup.py install the package is installed under the egg folder and the egg path appended to the easy-install.pth. Since oslo is not declared as a package the __init__.py from the oslo dir is not copied over causing the install to be broken. Pip doesn't suffer from this if this is the 1st package being installed from the oslo namespace as it copies the tree over (I havn't looked at the internals of pip just the outcome ;).

Changed in oslo:
assignee: nobody → Jason Kölker (jason-koelker)
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)

Mark McLoughlin (markmc)
Changed in oslo:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Mark McLoughlin (markmc) wrote :
Changed in oslo:
milestone: none → grizzly-rc1
status: Triaged → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Mark McLoughlin (markmc) wrote :
Thierry Carrez (ttx)
Changed in oslo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.